/* Globals */

body {
    font-family: 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #fff;
    margin: 0;
    padding: 0;
}

a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

a:hover {
    color: #000;
}

img {
    max-width: 100%;
    height: auto;
}



/* Header */

.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 16px 0px;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
}



/* Footer */

footer {
    background: #eee;
    text-align: center;
    padding: 1em;
    margin-top: 2em;
}



/* Navigation */

.site-nav {
  display: flex;
  justify-content: left;
  gap: 30px;
  font-family: sans-serif;
  font-size: 1.1em;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  text-align: center;
 
}

.site-nav a {
    text-decoration: none;
    flex: 0 0 auto; /* Prevents items from shrinking */
    color: #fff;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a:hover {
    color: #fff;
    border-bottom: 2px solid #ddd;
}

.site-nav a.active {
    color: #fff;
    font-weight: bold;
    border-bottom: 2px solid #fff;
}

.site-nav::before,
.site-nav::after {
  content: "";
  flex: 0 0 1rem; /* Or however much padding you want */
}



/* Galery Hero */

.gallery-hero {
    position: relative;
    height: 55vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0px;
    /* or adjust based on your header height */
    background-color: #555;
}

.gallery-hero-bg {
    position: absolute;
    top: -10;
    left: -10;
    width: 120%;
    height: 120%;
    filter: blur(20px) brightness(0.7);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
}

.gallery-hero-foreground-wrapper {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 55px;
}

.gallery-hero-foreground-img {
    max-width: 98%;
    max-height: 98%;
    object-fit: contain;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    /* actual shadow under image */
}



/* Shared Hero */

.hero-title {
    font-size: 3em;
    margin: 0;
    font-weight: 700;
    pointer-events: none;
}

.hero-desc {
    font-size: 1.5em;
    margin-top: 0.5em;
    font-weight: 300;
    pointer-events: none;
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.6);
    border: none;
    border-radius: 50%;
    width: 3em;
    aspect-ratio: 1 / 1;
    font-size: 1.5em;
    color: #222; /* ← This ensures arrow stays dark on all platforms */
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.hero-nav:hover {
    background: rgba(255, 255, 255, 0.9);
}


/* Mobile Support */

@media (max-width: 600px) {
    .hero-nav {
        width: 2.5em;
        font-size: 1.2em;
    }

    .hero-title {
        font-size: 1.2em;
    }

    .hero-desc {
        font-size: 1.0em;
    }
}



/* Hero Slider */

.hero-slide {
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease-in-out;
    /*display: flex;*/
    /*align-items: center;
    justify-content: center;
    padding-top: 0px;*/
    background-color: #555;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70vh !important;
    z-index: 1;
    overflow: hidden;
    will-change: transform;
}

.hero-overlay {
    padding-left: 1em;
    padding-bottom: 1em;
    max-width: 60%;
    position: absolute;
    left: 5%;
    bottom: 5%;
    z-index: 5;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.hero-gradient {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 4;
    pointer-events: none;
}



/* Content Page Container */

.content-scroll {
  position: relative;
  background: #fff;
  margin-top: 70vh;
  padding-top: 1px; /* <-- triggers reflow to avoid hard edge scroll */
  z-index: 2;
}


/*#hero-slide-container {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    will-change: transform;
    transform: translateY(0) scale(1);
}*/


.gallery-back {
    margin: 1em 0 0.3em 1.5em; /* Top, right, bottom, left */
    font-size: 1em;
}

.gallery-heading {
    margin: 1.0em 0 0.5em 1.0em;
    font-size: 1.6em;
}

.scroll-gallery {
    display: flex;
    overflow-x: auto;
    margin-left: 1em;
}

.scroll-gallery .tile {
    flex: 0 0 auto;
    width: 240px;
    background: #f4f4f4;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;

    /* Manual spacing instead of gap */
    margin-left: 0.5em;
}

.scroll-gallery .tile img {
    width: 100%;
    height: 160px;

    /* Compatibility fallback */
    background-size: cover;
    background-position: center;
    object-fit: cover;
}

.scroll-gallery .tile h4 {
    color: #555;
    /* soft classy gray */
    text-decoration: none;
    font-weight: 500;
    margin: 0.em;
}

.scroll-gallery .tile {
    box-shadow: none;
    transition: transform 0.2s ease, filter 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    will-change: transform, filter, background-color, box-shadow;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.scroll-gallery .tile:hover {
    transform: scale(1.03);
    filter: brightness(1.02);
    background-color: #f9f9f9;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    /* or 0.08 for extra subtle */
}


/* Small Thumb Images For Content Placement */

.small-tile {
    height: 240px;
    width: auto;
}



.tile {
    position: relative;
    width: 240px;
    height: 200px;
    background: #f4f4f4;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    margin: 0.5em;
    box-shadow: none;
}

.tile-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(6px) brightness(0.75);
    z-index: 0;
}

.tile-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    /* solid white */
    font-weight: bold;
    padding: 0.6em 0;
    z-index: 2;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.tile img.tile-image {
    position: relative;
    z-index: 2;
    height: 100%;
    width: auto !important;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.image-fade-wrapper {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.image-fade-wrapper img.tile-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.image-fade-overlay {
    content: "";
    position: absolute;
    top: 55%;
    left: 0;
    width: 100%;
    height: 27%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.tile:hover .image-fade-overlay {
    opacity: 0;
}

.about-section {
    padding: 60px 20px;
    max-width: 1000px;
    margin: auto;
}

.about-section h2 {
    font-size: 1.75em;
    margin-top: 0px;
    margin-bottom: 10px;
    border-left: 4px solid #555;
    padding-left: 12px;
    color: #222;
}

.about-section p {
    font-size: 1.05em;
    color: #444;
    line-height: 1.7;
}

.image-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding: 20px 0;
}

.image-strip img {
    flex: 0 0 auto;
    height: 200px;
    border-radius: 10px;
    scroll-snap-align: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.image-strip img:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.image-strip a {
    flex: 0 0 auto;
    display: inline-block;
}

.image-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); */
    gap: 16px;
    padding-top: 40px;
}

.image-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.image-grid img:hover {
    transform: scale(1.03);
}