/* Optimized Font Pairing: Unified Clean UI Stack */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,700&display=swap');

/* ====================================================================
   === CURATED ANTIQUE EXHIBITION GALLERY STYLE SHEET — THE VALLEY INN ===
   ==================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Montserrat:wght@300;400;500;600;700&display=swap');

body {
    margin: 0;
    padding: 0;
    background: #111A22; /* Matches the signature deep dark mountain slate canvas */
    color: #FFFFFF;
}

/* --- THE HEADER CHASSIS --- */
.vinn-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 4%;
    background: #151F28;
    border-bottom: 1px solid rgba(190, 140, 80, 0.2); /* Fine luxury gold line hook */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.vinn-gal-logo-anchor {
    display: block;
}

.vinn-gal-logo-img {
    display: block;
    width: 190px;
    height: auto;
    max-height: 65px;
    object-fit: contain;
	
  filter: brightness(0) invert(1);
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.vinn-btn-antique-return {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #BE8C50; /* Luxury Gold Tone */
    text-decoration: none;
    padding: 14px 30px;
    position: relative;
    border: 1px solid rgba(190, 140, 80, 0.4);
    background: transparent;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
    display: inline-block;
}

.vinn-btn-antique-return:hover {
    color: #FFFFFF;
    border-color: #BE8C50;
    box-shadow: 0 0 15px rgba(190, 140, 80, 0.15);
    transform: translateY(-2px);
}

/* --- MAIN CONTAINER COMPONENT --- */
.vinn-editorial-gallery {
    padding: 100px 0;
    background: #111A22;
}

.vinn-gal-container {
    max-width: 1280px; /* Constrained directly to your 1280px design rules */
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

/* --- HEADLINE STACK --- */
.vinn-gal-headline-stack {
    text-align: center;
    margin-bottom: 75px;
}

.vinn-gal-badge-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    letter-spacing: 4px;
    color: #BE8C50;
    text-transform: uppercase;
    font-weight: 600;
    display: block;
    margin-bottom: 15px;
}

.vinn-gal-master-title {
    font-family: 'Cinzel', serif;
    font-size: 46px;
    color: #FFFFFF;
    margin: 0 0 10px 0;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

.vinn-gal-gold-accent {
    color: #BE8C50;
    font-weight: 700;
}

.vinn-gal-sub-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #A6B4C2;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
}

.vinn-gal-crest-separator {
    color: #BE8C50;
    font-size: 14px;
    opacity: 0.4;
    margin-top: 24px;
    letter-spacing: 4px;
}

/* --- ANTIQUE MASONRY DISPLAY MATRIX --- */
.vinn-gal-masonry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 300px;
    gap: 24px;
}

.vinn-gal-card {
    position: relative;
    overflow: hidden;
    background: #151F28;
    border: 1px solid rgba(190, 140, 80, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    display: block;
    text-decoration: none;
    cursor: pointer;
}

/* Asymmetric Column Sizing Variables */
.vinn-size-wide { grid-column: span 2; }
.vinn-size-tall { grid-row: span 2; }

.vinn-gal-img-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.vinn-gal-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(15%) brightness(90%); /* Adds a subtle vintage, historic tone */
    transition: transform 0.9s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease;
}

/* --- LUXURY HOVER CAPTION CARDS --- */
.vinn-gal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(21, 31, 40, 0.98) 0%, rgba(21, 31, 40, 0.85) 100%);
    box-sizing: border-box;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
    transform: translateY(10px);
    border: 1px solid rgba(190, 140, 80, 0.3); /* Inner framed border upon focus */
}

.vinn-gal-index {
    position: absolute;
    top: 35px;
    right: 40px;
    font-family: 'Cinzel', serif;
    font-size: 20px;
    color: #BE8C50;
    opacity: 0.25;
    font-weight: 700;
}

.vinn-gal-category {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #BE8C50;
    margin-bottom: 10px;
    font-weight: 600;
}

.vinn-gal-overlay h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #FFFFFF;
    font-weight: 400;
    margin: 0;
    line-height: 1.3;
}

/* Hover Mechanics Trigger States */
.vinn-gal-card:hover .vinn-gal-overlay {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.vinn-gal-card:hover img {
    transform: scale(1.06);
    filter: grayscale(0%) brightness(40%);
}

/* ====================================================================
   === TABLET & IPAD PORTRAIT ENGINE RESPONSIVE MATRIX OPTIMIZATION ===
   ==================================================================== */
@media (max-width: 1024px) {
    .vinn-editorial-gallery {
        padding: 70px 0;
    }

    .vinn-gal-container {
        padding: 0 30px;
    }

    .vinn-gal-master-title {
        font-size: 36px;
    }

    /* Convert layout seamlessly to balanced dual rows on medium canvases */
    .vinn-gal-masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        grid-auto-rows: 280px;
    }

    .vinn-size-wide, .vinn-size-tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .vinn-gal-overlay {
        padding: 30px;
    }
}

/* ====================================================================
   === MOBILE SMARTPHONE SYSTEM RESPONSIVE MATRIX OPTIMIZATION ===
   ==================================================================== */
@media (max-width: 768px) {
    .vinn-gallery-header {
        padding: 15px 24px;
    }

    .vinn-gal-logo-img {
        width: 150px;
    }

    .vinn-btn-antique-return {
        padding: 10px 20px;
        font-size: 10px;
    }

    .vinn-gal-container {
        padding: 0 24px;
    }

    .vinn-gal-master-title {
        font-size: 28px;
    }

    .vinn-gal-sub-title {
        font-size: 11px;
    }

    /* Safely stacks images down a single sleek lane for easy phone finger scrolling */
    .vinn-gal-masonry-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
        gap: 16px;
    }
}