.ota-gallery {
    --gallery-green: #0e2a1e;
    --gallery-mahogany: #4a230b;
    --gallery-gold: #b88645;
    --gallery-paper: #f8eed8;
    --gallery-ink: #221107;
    --gallery-muted: #5a5041;
    --gallery-border: rgba(184, 134, 69, .34);
    color: var(--gallery-ink);
    font-family: var(--site-font-body, Georgia, serif);
    background: linear-gradient(180deg, rgba(248,238,216,.96), rgba(241,228,200,.96)), url("../../images/parchment_background.png");
}

.ota-gallery *, .ota-gallery *::before, .ota-gallery *::after { box-sizing: border-box; }
.ota-gallery__shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.ota-gallery__hero {
    position: relative;
    isolation: isolate;
    min-height: 270px;
    padding: clamp(46px, 6vw, 76px) 0 clamp(76px, 7vw, 104px);
    border-bottom: 1px solid var(--gallery-border);
    text-align: center;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.281), white),
        url("../../images/parchment_background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--gallery-ink);
}

.ota-gallery__hero::before,
.ota-gallery__hero::after {
    content: "";
    position: absolute;
    top: 22px;
    bottom: 22px;
    width: min(145px, 13vw);
    border-top: 1px solid rgba(226, 180, 120, 0.54);
    border-bottom: 1px solid rgba(226, 180, 120, 0.54);
    opacity: 0.82;
    z-index: 1;
    pointer-events: none;
}

.ota-gallery__hero::before {
    left: 28px;
    border-left: 1px solid rgba(226, 180, 120, 0.54);
}

.ota-gallery__hero::after {
    right: 28px;
    border-right: 1px solid rgba(226, 180, 120, 0.54);
}

.ota-gallery__hero .ota-gallery__shell {
    position: relative;
    z-index: 2;
}

.ota-gallery__hero .ota-gallery__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #b88645;
    font-family: var(--site-font-heading, Georgia, serif);
    font-size: 12px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.ota-gallery__hero .ota-gallery__eyebrow::before,
.ota-gallery__hero .ota-gallery__eyebrow::after {
    content: "";
    width: 32px;
    height: 1px;
    background: currentColor;
    opacity: 0.6;
}

.ota-gallery__hero h1 {
    margin: 12px 0 0;
    color: #4a230b;
    font-family: var(--site-font-heading, Georgia, serif);
    font-size: clamp(34px, 4.5vw, 54px);
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.1;
    text-transform: uppercase;
}

.ota-gallery__hero p {
    max-width: 700px;
    margin: 18px auto 0;
    color: #5a5041;
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.65;
}
.ota-gallery__section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.ota-gallery__heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--gallery-border); }
.ota-gallery__heading h2, .ota-gallery__empty h2 { color: var(--gallery-green); font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.1; }
.ota-gallery__heading p { margin: 0; color: var(--gallery-muted); }
.ota-gallery__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.ota-gallery--mosaic .ota-gallery__grid { grid-auto-flow: dense; }
.ota-gallery--mosaic .ota-gallery__card:nth-child(5n + 1) { grid-column: span 2; grid-row: span 2; }
.ota-gallery__card { margin: 0; overflow: hidden; border: 1px solid var(--gallery-border); background: rgba(255,249,236,.72); box-shadow: 0 16px 34px rgba(34,17,7,.1); }
.ota-gallery__card a { display: block; overflow: hidden; background: #dfd0ae; }
.ota-gallery__card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
.ota-gallery--mosaic .ota-gallery__card:nth-child(5n + 1) img { aspect-ratio: 1 / 1; }
.ota-gallery__card a:hover img, .ota-gallery__card a:focus-visible img { transform: scale(1.04); }
.ota-gallery__card figcaption { display: grid; gap: .35rem; padding: 1rem 1.1rem; }
.ota-gallery__card strong { color: var(--gallery-green); font-family: var(--site-font-heading, Georgia, serif); letter-spacing: .07em; text-transform: uppercase; }
.ota-gallery__card span { color: var(--gallery-muted); line-height: 1.55; }
.ota-gallery__empty { max-width: 42rem; margin: 0 auto; padding: clamp(2rem, 6vw, 4rem); border: 1px solid var(--gallery-border); text-align: center; background: rgba(255,249,236,.64); }
.ota-gallery__empty p { color: var(--gallery-muted); line-height: 1.65; }
.ota-gallery__empty a { display: inline-flex; padding: .9rem 1.2rem; border: 1px solid var(--gallery-green); color: var(--gallery-paper); background: var(--gallery-green); font-family: var(--site-font-heading, Georgia, serif); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
@media (max-width: 800px) { .ota-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ota-gallery--mosaic .ota-gallery__card:nth-child(5n + 1) { grid-column: span 2; } }
@media (max-width: 560px) { .ota-gallery__shell { width: min(100% - 28px, 1180px); } .ota-gallery__heading { align-items: start; flex-direction: column; gap: .8rem; } .ota-gallery__grid { grid-template-columns: 1fr; } .ota-gallery--mosaic .ota-gallery__card:nth-child(5n + 1) { grid-column: auto; grid-row: auto; } }
