:root {
    --cream: #f6f0e5;
    --paper: #fffdf8;
    --ink: #251d17;
    --wood: #5a3820;
    --wood2: #3d2718;
    --gold: #c5964c;
    --muted: #75695e;
    --line: #ded1c0;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.65;
}

h1, h2, .brand strong {
    font-family: Georgia, 'Times New Roman', serif;
}

.topbar {
    height: 78px;
    padding: 0 5vw;
    display: flex;
    align-items: center;
    gap: 34px;
    background: rgba(255, 253, 248, .97);
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid #eee5d8;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
    margin-right: auto;
}

.brand-mark {
    font-size: 35px;
    color: var(--wood);
}

.brand strong {
    display: block;
    font-size: 24px;
    line-height: 1;
}

.brand small, .footer-brand small {
    display: block;
    letter-spacing: 3px;
    font-size: 9px;
    margin-top: 7px;
}

.topbar nav {
    display: flex;
    gap: 25px;
}

.topbar nav a {
    color: var(--ink);
    text-decoration: none;
    font-size: 14px;
}

.topbar nav a:hover {
    color: var(--gold);
}

.langs {
    font-size: 13px;
}

.langs span {
    color: #aaa;
    margin: 0 5px;
}

.menu-btn {
    display: none;
    border: 0;
    background: none;
    font-size: 25px;
}

.hero {
    height: calc(100vh - 78px);
    min-height: 610px;
    max-height: 820px;
    position: relative;
    color: #fff;
    overflow: hidden;
}

.hero>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 12, 7, .72) 0%, rgba(20, 12, 7, .38) 45%, rgba(20, 12, 7, .06) 75%);
}

.hero-copy {
    position: absolute;
    left: 7vw;
    top: 50%;
    transform: translateY(-50%);
    max-width: 590px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2.4px;
    font-size: 12px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #e6c78f;
}

.eyebrow.dark {
    color: #9b6b2f;
}

.hero h1 {
    font-size: clamp(64px, 8vw, 116px);
    font-weight: 400;
    line-height: .87;
    margin: 0;
}

.gold-line {
    height: 3px;
    width: 92px;
    background: var(--gold);
    margin: 28px 0 22px;
}

.hero-copy>p:not(.eyebrow) {
    font-family: Georgia, serif;
    font-size: 23px;
}

.actions {
    display: flex;
    gap: 14px;
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 13px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.primary {
    background: var(--gold);
    color: #fff;
}

.ghost {
    border: 1px solid rgba(255, 255, 255, .7);
    color: #fff;
}

.hero-note {
    position: absolute;
    right: 5vw;
    bottom: 45px;
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 22px;
}

.section {
    max-width: 1260px;
    margin: auto;
    padding: 82px 5vw;
}

.intro {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 75px;
    align-items: center;
}

.copy h2, .history h2, .section-head h2, .location h2, .contact h2 {
    font: 400 clamp(34px, 4vw, 52px)/1.08 Georgia, serif;
    margin: 0 0 24px;
}

.copy p {
    color: #554a40;
}

.text-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--wood);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid var(--gold);
}

.feature {
    margin: 0;
}

.feature img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.history {
    background: var(--cream);
    padding: 65px 5vw;
}

.history-grid {
    max-width: 1260px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1.25fr .8fr;
    gap: 42px;
    align-items: center;
}

.history figure {
    margin: 0;
}

.history img {
    width: 100%;
    display: block;
}

.history-copy p {
    color: #5e5146;
}

.archive img {
    box-shadow: 0 10px 35px rgba(55, 35, 20, .15);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 35px;
}

.section-head h2 {
    margin-bottom: 0;
}

.section-head>p {
    max-width: 430px;
    color: var(--muted);
}

.mosaic {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 230px 230px;
    gap: 10px;
}

.mosaic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mosaic img:first-child {
    grid-row: 1/3;
}

.mosaic img:nth-child(2) {
    grid-column: 2/4;
}

.gallery-wrap {
    background: #f3ede4;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.gallery img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    cursor: pointer;
    transition: .2s;
}

.gallery img:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px #0002;
}

.location {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    min-height: 470px;
    background: var(--paper);
}

.location-card {
    padding: 70px 7vw;
}

.location-card p {
    color: var(--muted);
}

.coords {
    font-family: monospace;
    background: var(--cream);
    display: inline-block;
    padding: 8px 12px;
    margin: 5px 0 24px;
}

.map iframe {
    width: 100%;
    height: 100%;
    min-height: 470px;
    border: 0;
}

.contact {
    background: var(--wood2);
    color: #fff;
    padding: 60px 7vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.contact h2 {
    margin-bottom: 12px;
}

.contact p {
    max-width: 700px;
    color: #dfd3c7;
}

.contact .ghost {
    white-space: nowrap;
}

footer {
    background: #21150e;
    color: #d9cbbd;
    padding: 28px 5vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    font-size: 13px;
}

.footer-brand strong {
    font: 22px Georgia, serif;
    color: #fff;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: #000d;
    display: none;
    place-items: center;
    z-index: 50;
    padding: 35px;
}

.lightbox.open {
    display: grid;
}

.lightbox img {
    max-width: 94vw;
    max-height: 90vh;
}

.lightbox button {
    position: absolute;
    right: 24px;
    top: 14px;
    background: none;
    border: 0;
    color: #fff;
    font-size: 44px;
    cursor: pointer;
}

@media(max-width:900px) {
    .topbar {
        height: 66px;
        padding: 0 20px;
    }

    .brand strong {
        font-size: 20px;
    }

    .topbar nav {
        display: none;
        position: absolute;
        top: 66px;
        left: 0;
        right: 0;
        background: var(--paper);
        padding: 18px 24px;
        flex-direction: column;
        gap: 12px;
        border-top: 1px solid var(--line);
    }

    .topbar nav.open {
        display: flex;
    }

    .menu-btn {
        display: block;
    }

    .langs {
        display: none;
    }

    .hero {
        height: 76vh;
        min-height: 540px;
    }

    .hero-copy {
        left: 24px;
        right: 24px;
    }

    .hero-note {
        display: none;
    }

    .intro, .history-grid, .location {
        grid-template-columns: 1fr;
    }

    .intro {
        gap: 35px;
    }

    .feature img {
        height: 350px;
    }

    .history-grid {
        gap: 28px;
    }

    .archive {
        max-width: 480px;
    }

    .mosaic {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 230px 180px;
    }

    .mosaic img:first-child {
        grid-row: auto;
        grid-column: 1/3;
    }

    .mosaic img:nth-child(2) {
        grid-column: auto;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .location-card {
        padding: 55px 7vw;
    }

    .map iframe {
        min-height: 390px;
    }

    .contact, footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

}

@media(max-width:560px) {
    .brand small {
        letter-spacing: 2px;
        font-size: 7px;
    }

    .brand-mark {
        display: none;
    }

    .hero h1 {
        font-size: 60px;
    }

    .hero-copy>p:not(.eyebrow) {
        font-size: 19px;
    }

    .actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .section {
        padding: 58px 22px;
    }

    .history {
        padding: 52px 22px;
    }

    .feature img {
        height: 280px;
    }

    .mosaic {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .mosaic img, .mosaic img:first-child, .mosaic img:nth-child(2) {
        grid-column: auto;
        width: 100%;
        height: 240px;
    }

    .gallery {
        grid-template-columns: 1fr 1fr;
    }

    .gallery img {
        height: 150px;
    }

    .contact {
        padding: 50px 22px;
    }

    footer {
        padding: 30px 22px;
    }

}

.other-house-link {
    color: var(--gold)!important;
    font-weight: 700;
}

.price-strip {
    background: var(--wood2);
    color: #fff;
    padding: 42px 7vw;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7vw;
}

.price-strip h2 {
    font: 400 36px Georgia, serif;
    margin: 0 0 5px;
}

.price-strip p {
    margin: 0;
}

.price {
    font: 700 64px Georgia, serif;
    line-height: .9;
    color: #fff;
}

.price span {
    color: var(--gold);
}

.price small {
    display: block;
    font: 12px Arial, sans-serif;
    letter-spacing: 1px;
    margin-top: 10px;
    color: #d9cbbd;
}

.btn.light {
    background: var(--cream);
    color: var(--wood2);
}

.video-section {
    background: #fff;
}

.video-frame {
    max-width: 1050px;
    margin: auto;
    aspect-ratio: 16/9;
    background: #000;
}

.video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.hidden-gallery {
    display: none;
}

.pool-section {
    background: #eee5d8;
}

.pool-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 55px;
    align-items: center;
}

.pool-copy h2, .other-house-copy h2, .info-center h2 {
    font: 400 clamp(34px, 4vw, 52px)/1.08 Georgia, serif;
    margin: 0 0 22px;
}

.pool-lead {
    font: 22px Georgia, serif;
    color: var(--wood);
}

.pool-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pool-photos img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    cursor: pointer;
}

.other-house {
    max-width: 1260px;
    margin: 0 auto;
    padding: 75px 5vw;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 55px;
    align-items: center;
}

.other-house-photo img {
    width: 100%;
    height: 390px;
    object-fit: cover;
}

.other-house-copy p {
    color: var(--muted);
}

.btn.brown {
    background: var(--wood);
    color: #fff;
}

.info-center {
    max-width: 1120px;
    margin: 70px auto;
    padding: 38px 45px;
    border: 1px solid var(--line);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    align-items: center;
    background: var(--cream);
}

.info-center h2 {
    font-size: 34px;
    margin-bottom: 8px;
}

.info-center p {
    margin: 0;
    color: var(--muted);
}

.info-icon {
    width: 58px;
    height: 58px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font: italic 36px Georgia, serif;
    color: var(--wood);
}

.placeholder {
    opacity: .65;
    pointer-events: none;
}

.contact-lines {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.contact-lines a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid #ffffff55;
}

.contact-price {
    text-align: right;
}

.contact-price small {
    display: block;
    color: #d9cbbd;
}

.contact-price strong {
    display: block;
    font: 52px Georgia, serif;
    margin: 5px 0 18px;
}

footer a {
    color: #d9cbbd;
}

.lightbox {
    grid-template-columns: auto 1fr auto;
}

.lightbox img {
    grid-column: 2;
}

.lb-prev, .lb-next {
    position: static!important;
    font-size: 64px!important;
    padding: 15px!important;
}

.lb-close {
    position: absolute!important;
}

.lb-count {
    position: absolute;
    bottom: 15px;
    color: #fff;
    font-size: 13px;
    left: 50%;
    transform: translateX(-50%);
}

@media(max-width:900px) {
    .price-strip {
        gap: 28px;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .pool-grid, .other-house {
        grid-template-columns: 1fr;
    }

    .other-house-photo img {
        height: 330px;
    }

    .info-center {
        margin: 45px 5vw;
        grid-template-columns: auto 1fr;
    }

    .info-center .btn {
        grid-column: 1/3;
        justify-self: start;
    }

    .contact-price {
        text-align: left;
    }

    .contact-lines {
        flex-direction: column;
        gap: 8px;
    }

}

@media(max-width:560px) {
    .price-strip {
        padding: 35px 22px;
        align-items: flex-start;
        flex-direction: column;
    }

    .price {
        font-size: 54px;
    }

    .pool-photos {
        grid-template-columns: 1fr;
    }

    .pool-photos img {
        height: 230px;
    }

    .other-house {
        padding: 55px 22px;
    }

    .other-house-photo img {
        height: 250px;
    }

    .info-center {
        padding: 28px 22px;
        grid-template-columns: 1fr;
    }

    .info-center .btn {
        grid-column: auto;
    }

    .info-icon {
        width: 48px;
        height: 48px;
    }

    .lightbox {
        padding: 18px;
        grid-template-columns: 36px 1fr 36px;
    }

    .lb-prev, .lb-next {
        font-size: 44px!important;
        padding: 0!important;
    }

}

.design-credit {
    text-decoration: none!important;
}

.design-credit:hover, .design-credit:focus {
    text-decoration: none!important;
    color: #fff;
}

@media(max-width:560px) {
    .hero h1 {
        font-size: 48px;
        line-height: .92;
    }

}

/* Shared dynamic elements */
section[id] {
    scroll-margin-top: 96px;
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: var(--wood2);
    color: #fff;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    z-index: 30;
    box-shadow: 0 5px 18px #0003;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: .2s;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.back-to-top:hover {
    background: var(--gold);
}

.room-prices {
    display: flex;
    gap: 46px;
    align-items: center;
}

.room-prices div {
    min-width: 130px;
}

.room-prices small {
    display: block;
    color: #d9cbbd;
    margin-bottom: 3px;
}

.room-prices strong {
    font: 700 48px Georgia, serif;
}

.house2-prices {
    justify-content: space-between;
}

@media(max-width:900px) {
    section[id] {
        scroll-margin-top: 78px;
    }

    .room-prices {
        gap: 28px;
    }

    .house2-prices {
        align-items: flex-start;
    }

    .room-prices strong {
        font-size: 42px;
    }

}

@media(max-width:560px) {
    section[id] {
        scroll-margin-top: 70px;
    }

    .back-to-top {
        right: 15px;
        bottom: 15px;
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    .room-prices {
        width: 100%;
        justify-content: space-between;
    }

    .room-prices strong {
        font-size: 38px;
    }

}

/* Nearby section - House 2 */
.nearby-grid {
    display: grid;
    gap: 14px;
}

.nearby-card {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 16px;
    align-items: center;
    padding: 17px 18px;
    background: #fff;
    border: 1px solid rgba(73, 54, 37, .12);
    border-radius: 12px;
}

.nearby-card strong {
    display: block;
    margin-bottom: 4px;
    color: var(--wood2);
    font-size: 18px;
}

.nearby-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.nearby-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--cream);
    color: var(--wood2);
}

.nearby-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.location-address {
    line-height: 1.18;
}

.nearby-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, .9fr);
    gap: 42px;
    align-items: stretch;
}

.nearby-photo {
    margin: 0;
    min-width: 0;
}

.nearby-photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

/* Lightbox: keep every image inside the mobile viewport */
.lightbox img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(94vw, 1400px);
    max-height: 90vh;
    min-width: 0;
    object-fit: contain;
}

@media(max-width:900px) {
    .nearby-content {
        grid-template-columns: 1fr;
    }

    .nearby-photo img {
        height: auto;
        min-height: 0;
        max-height: 520px;
    }

    .lightbox {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        padding: 16px 8px;
    }

    .lightbox img {
        width: 100%;
        max-width: 100%;
        max-height: 82vh;
        object-fit: contain;
    }

    .lb-prev, .lb-next {
        min-width: 0;
    }

}

@media(max-width:560px) {
    .lightbox {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        padding: 12px 4px;
    }

    .lightbox img {
        width: 100%;
        max-width: 100%;
        max-height: 78vh;
    }

    .lb-prev, .lb-next {
        font-size: 38px!important;
    }

    .lb-close {
        right: 10px!important;
        top: 6px!important;
    }

    .nearby-photo img {
        width: 100%;
        height: auto;
    }

}

/* ==========================================================
   Desktop typography - reduced headings for better balance
   ========================================================== */
@media (min-width: 901px) {
    .hero h1 {
        font-size: clamp(52px,  6vw,  86px);
        line-height: 0.94;
    }

    .copy h2,  .history h2,  .section-head h2,  .location h2,  .contact h2,  .pool-copy h2,  .other-house-copy h2,  .info-center h2 {
        font-size: clamp(30px,  3vw,  42px);
        line-height: 1.12;
    }

    /* Keep the House 2 street/address heading on one line on normal desktops. */
    .location h2 {
        white-space: nowrap;
    }

}

/* Contact names are intentionally smaller than section headings. */
.contact h2[data-field$="contact_name"] {
    font-size: clamp(24px,  2.2vw,  32px);
    line-height: 1.2;
}


/* House 2 - compact price layout */
.contact-room-prices {
    min-width: 430px;
}

.price-options {
    display: flex;
    justify-content: flex-end;
    gap: 44px;
    margin-bottom: 20px;
}

.price-option {
    min-width: 150px;
}

.price-option small {
    margin-bottom: 4px;
}

.price-option strong {
    margin: 0;
    font-size: 44px;
    line-height: 1;
}

@media (max-width: 900px) {
    .contact-room-prices {
        min-width: 0;
        width: 100%;
        text-align: left;
    }

    .price-options {
        justify-content: flex-start;
        gap: 28px;
    }
}

@media (max-width: 480px) {
    .price-options {
        gap: 20px;
    }

    .price-option {
        min-width: 0;
        flex: 1;
    }

    .price-option strong {
        font-size: 38px;
    }
}


/* Собствен басейн - Йовчовата къща */
.private-pool-section {
    background: #f7f2e9;
}

.private-pool-grid {
    display: grid;
    grid-template-columns: .72fr 1.28fr;
    gap: 55px;
    align-items: center;
}

.private-pool-copy h2 {
    font: 400 clamp(34px, 4vw, 52px)/1.08 Georgia, serif;
    margin: 0 0 22px;
}

.private-pool-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.private-pool-photos img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    cursor: pointer;
}

.private-pool-hidden {
    display: none;
}

@media (max-width: 760px) {
    .private-pool-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .private-pool-photos {
        grid-template-columns: 1fr;
    }

    .private-pool-photos img {
        height: auto;
        max-height: 420px;
    }
}


/* Празнични пакети */
.holiday-packages {
    background: #f7f2e9;
}

.holiday-packages:empty {
    display: none;
}

.holiday-packages.is-ready {
    animation: holidayPackagesFadeIn .35s ease-out both;
}

@keyframes holidayPackagesFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .holiday-packages.is-ready {
        animation: none;
    }
}

.holiday-packages-section {
    padding: 70px 0;
}

.holiday-packages-section h2 {
    margin-top: 0;
}

.holiday-package-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 30px;
}

.holiday-package-card {
    background: #fff;
    border: 1px solid rgba(80, 59, 39, .15);
    padding: 28px;
}

.holiday-package-card h3 {
    margin: 0 0 14px;
    font: 400 28px/1.15 Georgia, serif;
    color: var(--wood);
}

.holiday-package-card p {
    margin: 0;
    line-height: 1.65;
}

.holiday-package-price {
    margin-top: 20px;
    font: 600 24px/1.1 Georgia, serif;
    color: var(--wood);
}

@media (max-width: 720px) {
    .holiday-packages-section {
        padding: 50px 0;
    }

    .holiday-package-grid {
        grid-template-columns: 1fr;
    }

    .holiday-package-card {
        padding: 22px;
    }
}





/* BG / EN - мобилна навигация */
@media (max-width: 900px) {
    .topbar nav.open .langs {
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        width: 100%;
        margin-top: 2px;
        padding-top: 12px;
        border-top: 1px solid var(--line);
    }

    .topbar nav.open .langs span {
        display: none;
    }

    .topbar nav.open .langs a,
    .topbar nav.open .langs strong {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 40px;
        height: 32px;
        padding: 0 9px;
        border: 1px solid #b78b45;
        color: #6a4a27;
        background: transparent;
        font: 600 13px/1 Arial, sans-serif;
        text-decoration: none;
        box-sizing: border-box;
    }

    .topbar nav.open .langs strong {
        background: #b78b45;
        color: #fff;
    }
}


/* История - възстановяване на нормалните пропорции на снимките */
.history-grid > img,
.history-grid .history-image,
.history-grid .history-photo {
    width: 100%;
    height: 100%;
    max-height: 620px;
    object-fit: cover;
    display: block;
}

@media (max-width: 900px) {
    .history-grid > img,
    .history-grid .history-image,
    .history-grid .history-photo {
        height: auto;
        max-height: none;
        object-fit: contain;
    }
}

/* Lightbox - плавно отваряне */
.lightbox {
    opacity: 0 !important;
    visibility: hidden;
    transition: opacity .42s ease !important;
}

.lightbox.opening {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 0 !important;
}

.lightbox.opening.open {
    opacity: 1 !important;
}

.lightbox img {
    opacity: 0;
    transform: scale(.96);
    transition: opacity .42s ease, transform .42s ease !important;
}

.lightbox.opening img,
.lightbox.opening.open img {
    margin-left: auto !important;
    margin-right: auto !important;
}

.lightbox.opening.open img {
    opacity: 1;
    transform: scale(1);
}

.lightbox .lb-prev,
.lightbox .lb-next,
.lightbox .lb-close,
.lightbox .lb-count {
    opacity: 0;
    transition: opacity .28s ease .12s;
}

.lightbox.opening.open .lb-prev,
.lightbox.opening.open .lb-next,
.lightbox.opening.open .lb-close,
.lightbox.opening.open .lb-count {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .lightbox,
    .lightbox img,
    .lightbox .lb-prev,
    .lightbox .lb-next,
    .lightbox .lb-close,
    .lightbox .lb-count {
        transition: none !important;
    }
}


/* Галерия - показване на всички снимки */
.gallery-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.gallery-more {
    appearance: none;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--wood2);
    padding: 11px 22px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.gallery-more:hover,
.gallery-more:focus-visible {
    background: var(--gold);
    color: #fff;
    transform: translateY(-1px);
}

.gallery .gallery-added {
    width: 100%;
    height: 210px;
    object-fit: cover;
    cursor: pointer;
}
