* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
@font-face {
    font-family: 'OpenSansLight';
    src: url('../fonts/OpenSans-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

body, html {
    height: 100%;
    font-family: sans-serif;
}
.scrollable-page {
    overflow: hidden; /* prevents unwanted scroll */
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    height: 100dvh; /* modern full height */
}

.site-header {
    height: 80px;
    background-color: white;
   /* border-bottom: 1px solid #eee;*/
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
	padding-top:30px;
    flex-shrink: 0;
	letter-spacing:0.16em;
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    flex-wrap: wrap;
}
.site-title a{
	text-decoration: none;
    font-size: 30px;
  color:#08192D;
font-family: 'OpenSansLight', sans-serif;
    font-weight: 300;
	letter-spacing:0.16em;
}

nav a {
    margin-left: 200px;
    text-decoration: none;
    color: #373c38;
    font-weight: 500;
    font-size: 1.1em;
}

nav a:hover {
    color: #000;
}
.navg{
	margin-left: 20px;
}
nav a.navg {
    margin-left: 20px;  /* spacing between tabs */
}

/* First tab offset from title */
#navbar .first-tab {
    margin-left: 200px; /* distance from site title */
}
.homepage {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
}

.featured-art img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    display: block;
}
.featured-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: white; /* optional background */
}

.featured-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    /*border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);*/
}


nav a.active {
    font-weight: bold;
    border-bottom: 2px solid black;
}
.gallery-container {
    display: flex;
    justify-content: center;
    padding: 40px 30px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 per row */
    gap: 20px;
    max-width: 1200px;
    width: 70%;
}

/* Portrait containers */
.art-piece {
    width: 100%;
    height: 300px;          /* fixed container height */
    display: flex;
    justify-content: center; /* center horizontally */
    align-items: center;     /* center vertically */
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    flex-direction: column;
}

/* Image stays fully visible and centered */
.art-piece img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;  /* show full image */
    display: block;
    margin: auto;
    transition: transform 0.3s ease;
}

/* Caption at the bottom */
.art-caption {
    width: 100%;
    text-align: center;
    font-weight: 300;
    font-size: 1em;
    color: #202D3C;
	letter-spacing: 2px;
    padding: 5px 0;
    background-color: white;
    position: absolute;
    bottom: 0;
}


/* Hover effect */
.art-piece img:hover {
    transform: scale(1.02);
}




.art-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.6);  /* Dark background for text visibility */
    color: white;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
}
.gallery-title{
color:#268785;
 text-align: left;
 padding-left:18%;
 padding-bottom:0.1%;
 padding-top:5%;
 font-size: 1.3em;
 font-weight: 100;
 position: relative;
}
.gallery-title::after {
    content: "";
    display: block;
    height: 1px;
    background-color: #268785;
    margin-top: 2px;
    width: calc(20% + 2px);
    transform: translateX(-1px); /* center the 2px extension */
}


.artwork-details {
    max-width: 30vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
	padding-left:30px;
}

.artwork-details h2 {
    margin-bottom: 1.3rem;
    font-size: 1.8rem;
    color: #363433;
	font-weight:500;
	justify-content:none;
}

.artwork-details p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.1;
    color: #474b4c;
}
.navigation-links {
     /*display: flex; Makes links appear on the same line */
    justify-content: flex-start; /* Align links to the left */
    margin-top: 1rem; /* Optional: Add some spacing above the links */
	text-decoration: none;
	color:#268785;
 text-align: right;
 padding-right:28%;
 padding-bottom:0.1%;
 padding-top:0.1%;
 font-size: 0.8em;
 font-weight: 100;
 position: relative;
}
.navigation-links a {
    display:inline-block;
    text-decoration: none;
    color: #268785;
    font-weight: 100;
    font-size: 0.8rem;
margin-right: 10px;  /* Optional: Adds space between the links */
 justify-content: flex-start; /* Align links to the left */
}

@media (max-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
		justify-content:center;
    }
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
		justify-content:center;
    }
	.gallery-title{
			padding-left:8%;
			}
	.gallery-title::after {
    width: calc(50% + 2px);
}
.navigation-links{
	padding:1%;}

}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
    }
	.gallery-title{
		padding-left:10%;
	}
	.navigation-links{
	padding:1%;}
}

/* Small screens: reduce side padding for gallery to 5px */
@media (max-width: 768px) {
    .gallery-container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .gallery {
        width: 100%;  /* take full width */
        max-width: none; /* remove max-width limit */
        gap: 10px;   /* optional: reduce gap for more space */
        padding: 0;  /* remove internal padding */
    }

    .art-piece {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Reset global styles for margin, padding, and box-sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hamburger Icon */
.menu-toggle {
    display: none; /* Hide by default */
    font-size: 28px;
    cursor: pointer;
    position: absolute;
    /*top: 30px;  Adjust the position of the hamburger icon */
    right: 20px; /* Place it on the right side */
    z-index: 2; /* Ensure it is above other content */
}

/* Close Button for Hamburger (X) */
.menu-close {
    display: none; /* Hide by default */
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #333; /* Default color */
    position: absolute;
    top: 20px;
    right: 20px; /* Position the close button on the top-right */
    z-index: 3;
    transition: all 0.9s ease;
}

/* Navigation menu */
nav {
    display: flex; /* Make sure the navigation is displayed as flex by default */
	flex-direction: column; 
    gap: 15px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;

}

/* Style for the links in the menu */
nav a {
    text-decoration: none;
    color: #475164; /* Set color globally for all screens */
    padding: 10px 0;
    font-size: 1.2em;
    font-weight: 500;
    text-align: center;
}

/* Hover effect for menu items */
nav a:hover {
    color: #15559A; /* Hover color */
    transition: all 0.6s ease;
}

/* Show Hamburger Icon & Menu only on Small Screens (max-width: 768px) */
@media (max-width: 768px) {
    /* Hamburger Icon */
    .menu-toggle {
        display: block; /* Show the hamburger icon on small screens */
    }

    /* Navigation (Hamburger menu) */
    nav {
        display: none; /* Hidden by default */
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background-color: white;
        z-index: 9999;
        padding: 0 20px;
        box-sizing: border-box;
        padding-top: 60px; /* Adjust to make room for the header */
		padding-bottom: 10px; /* Adjust to make room for the header */
		
    }
	

    nav.show {
		
        display: flex; /* Show the menu when active */
        flex-direction: column; /* Stack items vertically */
        background-color: white; /* Make sure the background is white */
		padding-bottom:5%;
    }

    nav a {
		margin-left: 0 !important; /* Reset all nav link margins on small 
        padding: 10px 0;
        text-align: left; /* Left-align the links on small screens */

    }

    /* Menu Close Button for small screens */
    .menu-close {
        display: block; /* Show close button in the menu */
    }

    /* Optional: Adjust for small screen layout */
    .site-header {
        padding: 0 20px; /* Optional: Adjust header padding for smaller screens */
    }
}

/* Large Screens (Above 768px) */
@media (min-width: 769px) {
    /* Hide hamburger icon and menu close button */
    .menu-toggle, .menu-close {
        display: none; /* Hide both on large screens */
    }

    nav {
        display: flex; /* Show the menu in a row for large screens */
        flex-direction: row; /* Ensure horizontal layout */
        justify-content: center; /* Center the items */
    }

    nav a {
        color: #373834; /* Ensure the color is consistent with small screens */
    }
}



/* Small screens (max-width: 768px) */
@media (max-width: 768px) {
    /* Container for image and details */
    .featured-container {
        padding: 10px;
        flex-direction: column; /* Stack the image and details vertically */
        align-items: center; /* Center both image and details */
        text-align: center; /* Ensure text is centered under the image */
    }

    /* For the artwork image */
    .featured-img {
        max-width: 100%;
        max-height: 80vh; /* Adjust based on preference */
        object-fit: contain;
    }

    /* For the artwork details */
    .artwork-details {
        margin-top: 15px; /* Add space between image and details */
        margin-left: 0; /* Ensure no extra space on left */
        max-width: 100%; /* Take up the full width for small screens */
        text-align: left; /* Align text to the left */
    }

    .artwork-details h2 {
        font-size: 1.5rem; /* Adjust size as needed */
        font-weight: 500;
        color: #363433;
        margin-bottom: 1.3rem;
		 text-align: center;
    }

    .artwork-details p {
        margin-bottom: 1.5rem;
        font-size: 1.1rem;
        line-height: 1.3;
        color: #474b4c;
		 text-align: center;
    }
}
.about{
	padding-top:5%;
	padding-left:10%;
	padding-right:10%;
	 margin-bottom: 1.5rem;
        font-size: 1.1rem;
        line-height: 1.3;
     letter-spacing:0.10em;
        color: #474b4c;
		 text-align: left;
		 justify-content: center;
}
.contact{
	padding-top:10%;
	padding-bottom:2%;
	font-weight:900;
	font-size:1.3rem;
	font-family:OpenSansLight;}

.site-footer {
    text-align: center;
    font-size: 0.8rem;
    color: #806d9e;
    padding: 20px;
    margin-top: auto;
    /*background-color: #f5f5f5;*/
}
/* Initially set the image opacity to 0 */
img.fade-in {
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-color: #f0f0f0;  /* Light grey background while loading */
    background-image: url('https://via.placeholder.com/800x600'); /* Placeholder image */
    background-size: cover;
    background-position: center;
}

/* Once the image has fully loaded, it will transition to full opacity */
img.fade-in.loaded {
    opacity: 1;
}

/* Optional: A fallback for images that are taking too long to load */
img.lazy {
    visibility: hidden;
}

/* Dropdown container */
.dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}


/* Toggle text */
.dropdown-toggle {
    font-size: 1.05em;
    font-weight: 100;
    color: #373c38;
    white-space: nowrap;
}

/* Dropdown menu */
.dropdown-menu {
    position: absolute;
    top: 110%;
    left: 0;                /* ALIGN UNDER "More" */
    right: auto;

    background: white;
    width: max-content;     /* auto width */
    min-width: 80px;

    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    padding: 6px 0;

    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;

    z-index: 1000;
}


/* Dropdown container */
.dropdown {
    position: relative;
    cursor: pointer;
}

/* Toggle text */
.dropdown-toggle {
    font-size: 1.1em;
    font-weight: 500;
    color: #373c38;
}

/* Dropdown menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 120px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    display: none;
    flex-direction: column;
    z-index: 1000;
    padding: 10px 0;
    transition: all 0.25s ease;
}

/* Dropdown links */
.dropdown-menu a {
    display: block;
    padding: 6px 14px 16px;
    margin: 0;
    text-align: left;
    white-space: nowrap;
    font-size: 1.1em;
    color: #373c38;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background-color: #f2f2f2;
}

/* Show dropdown when .open is added */
.dropdown.open .dropdown-menu {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

//* Mobile: show all dropdown links inline with other nav links */
@media (max-width: 768px) {
    .dropdown-toggle {
        display: none; /* hide the toggle */
    }

    .dropdown-menu {
        position: static;        /* make them part of normal flow */
        display: flex !important; 
        flex-direction: column;  
        box-shadow: none;
        padding: 0;
    }

    .dropdown-menu a {
        color: #475164;          /* same as other nav links */
		text-decoration: none;
        padding: 10px 0;
        font-size: 1.1em;
        font-weight: 900;
        text-align: left;
        margin-left: 0 !important;
    }

    .dropdown-menu a:hover,
    .dropdown-menu a:focus {
        color: #15559A;
        background-color: transparent; /* optional */
    }

    /* make dropdown behave like normal nav links */
    nav .dropdown {
        display: contents; /* children flow into nav */
    }
}
/* =========================
   TABLET / MID SCREENS
   ========================= */
@media (min-width: 769px) and (max-width: 1280px) {

    /* Header stack */
    .site-header {
        height: auto;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 30px 20px;
        gap: 20px;
        text-align: center;
    }

    /* Center title */
    .site-title {
        width: 100%;
        text-align: center;
    }

    .site-title a {
        font-size: 32px;
    }

    /* Navigation under title */
    nav {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 30px;
        width: 100%;
    }

    nav a,
    nav a.navg,
    #navbar .first-tab {
        margin-left: 0 !important;
    }

    /* Gallery: 3 images per row */
    .gallery {
        grid-template-columns: repeat(3, 1fr);
        width: 90%;
    }

    /* Gallery title alignment */
    .gallery-title {
        padding-left: 5%;
        text-align: left;
    }

    .gallery-title::after {
        width: 30%;
    }
}
/* Container */
.collage-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Masonry columns */
.collage-grid {
    column-count: 4;
    column-gap: 12px;
}

/* Masonry item */
.collage-item {
    break-inside: avoid;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
    position: relative;
}

/* Image behavior */
.collage-item img {
    width: 100%;
    height: auto;
    display: block;

    /* KEY PART */
    max-height: 420px;          /* prevents ultra-tall gaps */
    object-fit: contain;        /* FULL image visible */
    
    transition: transform 0.5s ease;
}

/* Subtle zoom (does NOT break masonry) */
.collage-item:hover img {
    transform: scale(1.03);
}

/* Optional animated zoom cycle */
.collage-item img.zoomed {
    transform: scale(1.08);
    z-index: 2;
}

/* Responsive columns */
@media (max-width: 1200px) {
    .collage-grid { column-count: 3; }
}
@media (max-width: 800px) {
    .collage-grid { column-count: 2; }
}
@media (max-width: 500px) {
    .collage-grid { column-count: 1; }
}

