/* Valley House Gallery custom overrides on top of the template styles. */

/* Underline the top-nav item for whichever page the visitor is actually on
   (the template's own ".current" styling is just a color change) - makes
   the selected section clearer at a glance. */
.header-navigation ul.navigation-box > li.current > a {
    text-decoration: underline;
    text-underline-offset: 6px;
}

/* The template's ".thm-btn" (used for every solid-orange button - Send
   Message, View All Artists, etc.) pairs white text with the #d99578
   orange, which only measures ~2.5:1 contrast - well under the 4.5:1 WCAG
   AA requires for normal text. Dark text on that same orange measures
   ~5.5:1, so this switches it without touching the button's color/shape.
   The template's own hover state (dark background, white text) already
   has good contrast and is left alone. */
.thm-btn {
    color: #302e2f;
}

.thm-btn:hover {
    color: #fff;
}

/* The Contact page's "Send Message" button is both ".thm-btn" and the
   template's own ".contact-one__btn", which is a dark-by-default variant
   (dark background, white text; flips to orange background on hover) -
   the opposite of the plain orange-by-default ".thm-btn" buttons above.
   Without this, the ".thm-btn" dark-text override above would land on
   this button's already-dark background and make the label invisible.
   Its hover state also needs the same orange-background/dark-text fix as
   the rest of the site's orange buttons. */
.contact-one__btn {
    color: #fff;
}

.contact-one__btn:hover {
    color: #302e2f;
}

/* "Skip to main content" link for keyboard/screen-reader users - offscreen
   until it receives keyboard focus (the first Tab stop on every page), then
   drops into view above the header so it can actually be activated. */
.skip-link {
    position: absolute;
    top: -60px;
    left: 0;
    z-index: 10000;
    padding: 12px 20px;
    background-color: #302e2f;
    color: #fff;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    color: #fff;
}

a.navbar-brand.navbar-brand--stacked {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    line-height: 1.15 !important;
    height: auto !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    /* The template reserved this space for a divider between the logo and a
       single-line nav ("border-right: 1px solid ...; padding-right: 40px;"
       on .navbar-brand). Our stacked 3-line logo doesn't use that divider,
       but the rule was never cleared - the border stretched the full height
       of the (taller, absolutely-positioned) logo box, so it could poke out
       past the header's own background as a stray vertical line. */
    padding-right: 0 !important;
    border-right: 0 !important;
    text-align: center;
}

.navbar-brand--stacked .navbar-brand__line {
    display: block !important;
    color: #fff !important;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.navbar-brand--stacked .navbar-brand__line--main {
    font-size: 17px;
}

/* "Valley House Gallery" (the first line) reads as the primary name;
   "Sculpture Garden" stays the smaller second line. */
.navbar-brand--stacked .navbar-brand__line--main:first-child {
    font-size: 22px;
    font-weight: 600;
}

.navbar-brand--stacked .navbar-brand__line--amp {
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0.85;
    margin: 2px 0;
}

.navbar-brand--stacked .navbar-brand__amp {
    padding: 0 8px;
}

.navbar-brand--stacked .navbar-brand__rule {
    display: inline-block;
    width: 18px;
    height: 1px;
    background-color: currentColor;
    opacity: 0.6;
}

/* The template hides .right-side-box entirely below 425px — fine when it only
   held a cart icon, but it now holds Sign In / Account, so it must stay visible
   on phones. */
@media (max-width: 425px) {
    .header-navigation .container .right-side-box {
        display: -webkit-box !important;
        display: -ms-flexbox !important;
        display: flex !important;
    }
}

/* The template reserved 145px of logo-box padding for a cart icon + a
   three-line hamburger toggle in .right-side-box. That box now holds a single
   account icon, so the reserved space can shrink, giving the stacked title
   more room on tablet/mobile widths. */
@media (max-width: 1199px) {
    .header-navigation .container .logo-box {
        padding-right: 70px;
    }
}

/* .right-side-box is absolutely positioned over the nav (that's the
   template's own layout, not ours), so it doesn't push nav items out of the
   way on its own — the container's right padding is what reserves room for
   it. The template sized that padding for a cart icon + hamburger toggle;
   now that the box also holds the first-name greeting, it needs a little
   more room on desktop widths (>=1200px, where the full nav is visible) so
   the greeting text doesn't run into the last nav link. */
@media (min-width: 1200px) {
    .site-header__header-one .container {
        padding-right: 150px;
    }
}

/* Keep the header (and its account dropdown, including the cloned sticky
   version) stacked above later page content. Owl Carousel's sliding track
   uses a CSS transform, which opens its own stacking context — without an
   explicit z-index here the dropdown can end up rendering behind it. */
.site-header {
    position: relative;
    z-index: 1000;
}

.stricked-menu {
    z-index: 1051 !important;
}

.account-nav .dropdown-menu {
    z-index: 1060;
}

/* Account nav: first-name greeting shown next to the account icon when
   signed in. */
.account-nav {
    display: flex;
    align-items: center;
}

.account-nav__greeting {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: #fff;
    font-size: 13px;
    line-height: 1.3;
    letter-spacing: 0.5px;
    margin-right: 12px;
    text-align: right;
}

.account-nav__greeting-line {
    white-space: nowrap;
}

/* Account icon: the project's accent color, replacing the unstyled default
   link blue. */
.account-nav__toggle {
    color: #d99578;
}

.account-nav__toggle:hover,
.account-nav__toggle:focus {
    color: #d99578;
}

/* "Email not verified" dropdown item: same warning colors as
   .auth-page__badge--warning on the My Account page. */
.account-nav .dropdown-item.account-nav__unverified {
    margin: 4px 12px;
    width: auto;
    background-color: #fdf3ea;
    border: 1px solid #f0d3b8;
    color: #a4622d;
    font-size: 14px;
}

.account-nav .dropdown-item.account-nav__unverified:hover,
.account-nav .dropdown-item.account-nav__unverified:focus {
    background-color: #f9e6d4;
    color: #a4622d;
}

@media (max-width: 575px) {
    .account-nav__greeting {
        display: none;
    }
}

/* Open the account dropdown on hover instead of requiring a click, on
   devices with a real mouse. Touch devices (no hover) keep the normal
   Bootstrap click-to-toggle behavior, since hover doesn't apply there. */
@media (hover: hover) and (pointer: fine) {
    .account-nav.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/* Gallery News "Videos" tab: the template's .video-one__box is built for a
   single full-bleed hero video (absolutely positioned, huge play icon), but
   here it's reused as a grid of video thumbnails, so it needs to behave like
   a normal in-flow card instead. */
.gallery-news__video-item .video-one__box {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    z-index: auto;
}

.gallery-news__video-item .video-one__play-btn {
    font-size: 40px;
}

.gallery-news__video-caption {
    font-size: 14px;
}

/* Home page exhibit strip carousel (owl-carousel, sliding like the
   template's own carousels e.g. slider-one / collection-five). Full-bleed,
   one image per slide, like the template's hero slider. */
.home-exhibit-strip__carousel {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.home-exhibit-strip__item img {
    width: 100%;
    height: 60vh;
    min-height: 320px;
    max-height: 600px;
    object-fit: cover;
}

.home-exhibit-strip__carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.home-exhibit-strip__carousel .owl-nav [class*="owl-"] {
    pointer-events: auto;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: #fff;
    color: #202020;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    margin: 0 -18px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.home-exhibit-strip__carousel .owl-nav [class*="owl-"]:hover {
    background-color: #d99578;
    /* White on this orange measures ~2.46:1, below even the 3:1 WCAG AA
       needs for a non-text UI component (WCAG 1.4.11) - dark matches the
       ".thm-btn" fix above and measures ~5.5:1. */
    color: #302e2f;
}

.home-exhibit-strip__carousel .owl-nav .disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* "Current & Upcoming Exhibitions" on Home: the template's own exhibition
   section (.exhibhition-one, whose card classes we already use here) is a
   dark section, not white — its title/date text is hard-coded white in the
   template CSS, so leaving this section's background white left that text
   unreadable. Matching the template's dark background fixes that and gives
   Home the section-color break the template has after its slider. */
.current-exhibitions {
    background-color: #302e2f;
}

.current-exhibitions .block-title__title {
    color: #fff;
}

/* "Since 1954", above the footer title link. */
.site-footer__since {
    margin: 0 0 6px;
    color: #a19b9d;
    font-style: italic;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Footer title ("Valley House Gallery & Sculpture Garden"): plain text, not
   a link to Home - the template doesn't style this class (it's ours), so
   without this it would fall back to default paragraph styling instead of
   the accent color the rest of the footer headings use. */
.site-footer__logo-text {
    margin: 0 0 20px;
    color: #d99578;
    font-family: "Prata";
    font-size: 22px;
    line-height: 1.3;
}

/* ADAA / CADD membership badges column: their real logo marks (from
   vertex.valleyhouse.com), inlined as SVG so they can be colored with CSS
   the same way the rest of the footer's links are - muted by default,
   accent color on hover - rather than showing as flat black shapes. */
.site-footer__badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.site-footer__badges a {
    display: inline-block;
    color: #a19b9d;
    transition: color 0.4s ease;
}

.site-footer__badges a:hover {
    color: #d99578;
}

.site-footer__badge-logo {
    width: 80px;
    height: auto;
    fill: currentColor;
    display: block;
}

@media (max-width: 991px) {
    .site-footer__col--badges {
        display: flex;
        justify-content: center;
    }
}

/* Footer contact list (address / phone): same treatment as the other footer
   links now that the address opens in Google Maps in a new tab. */
.site-footer__contact-list a {
    color: #d99578;
    transition: color 0.4s ease;
}

.site-footer__contact-list a:hover {
    color: #fff;
}

/* The hours line ("Mon - Sat, 10am - 5pm") is plain text, not a link, so it
   was falling back to the template's global body color (#777777) - only
   ~3:1 against this dark footer, under the 4.5:1 WCAG AA needs for normal
   text. The same muted gray already used elsewhere in this footer
   (.site-footer__since, .site-footer__badges) measures ~4.9:1 here. */
.site-footer__contact-list li {
    color: #a19b9d;
}

/* Footer layout: contact/social, newsletter signup, and ADAA/CADD badges.
   A Bootstrap percentage-width column (col-lg-N) always claims that % of
   the container no matter how little it holds, so the narrow badges
   column - one 80px logo mark, centered - was mostly empty padding, which
   read as a big stray gap before the badges rather than even spacing.
   CSS grid with an "auto" track for the badges fixes that directly: the
   two text/form columns split the remaining width evenly (1fr 1fr), the
   badges column is exactly as wide as its content, and the row still
   fills the full container - no leftover dead space, no risk of the
   badges wrapping onto their own line the way a fixed-pixel flex layout
   could. */
.site-footer__row {
    align-items: center;
}

.site-footer__col {
    margin-bottom: 30px;
}

@media (min-width: 992px) {
    .site-footer__row {
        display: grid;
        grid-template-columns: 1fr 1fr auto;
        column-gap: 40px;
    }

    .site-footer__col--main,
    .site-footer__col--badges {
        max-width: none;
        margin-bottom: 0;
    }
}

/* Bottom bar: copyright left, Contact Gallery/Privacy Policy links right -
   the template's own .site-footer__copy is just centered text, so this adds
   a two-column row on top of it. */
.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #423f40;
    text-align: left;
}

.site-footer__bottom .site-footer__copy {
    margin: 0;
}

.site-footer__bottom-links {
    margin: 0;
    text-align: right;
}

.site-footer__bottom-links a {
    color: #d99578;
    transition: color 0.4s ease;
}

.site-footer__bottom-links a:hover {
    color: #fff;
}

.site-footer__bottom-links a + a {
    margin-left: 20px;
}

@media (max-width: 575px) {
    .site-footer__bottom {
        justify-content: center;
        text-align: center;
    }

    .site-footer__bottom-links {
        text-align: center;
    }
}

/* Footer newsletter form: a Name field, an Email field, and a full-width
   "Subscribe" button stacked underneath - simpler than the template's
   single icon-overlaid email pill, and matches the multi-field form. */
.site-footer__form {
    margin-top: 20px;
}

.site-footer__form-name,
.site-footer__form-email {
    display: block;
    width: 100%;
    height: 50px;
    background-color: #fff;
    border: none;
    outline: none;
    color: #777777;
    font-size: 16px;
    padding: 0 20px;
    margin-bottom: 12px;
}

.site-footer__form-btn {
    /* Cancel the template's ".site-footer__form button[type=submit]" rule
       (class+attribute+element selector - higher specificity than a single
       class here), which absolutely positions it, makes it transparent and
       sizes its text for the old single icon-pill layout. That was both
       overlapping this stacked Name/Email/Subscribe form and leaving the
       "Subscribe" button looking like plain text instead of a filled
       button. !important is the reliable way to beat that selector without
       copying its exact shape. */
    position: static !important;
    display: block !important;
    width: 100% !important;
    transform: none !important;
    background-color: #d99578 !important;
    /* White text on this orange only measures ~2.5:1 contrast, well under
       the 4.5:1 WCAG AA requires for normal text - dark text on the same
       orange measures ~5.5:1. */
    color: #302e2f !important;
    font-size: 13px !important;
    padding: 12px 52px !important;
    border-radius: 4px !important;
}

/* Not the template's usual dark hover: this button sits on a dark footer
   background (#302e2f) to begin with, so a dark hover fill is the same
   color as the page behind it and the button visually disappears, leaving
   just floating text. A muted, desaturated version of the button's own
   orange (#d99578) keeps it feeling like the same button rather than a
   jarring white flash - a straight darkening of the orange would drop
   below the 4.5:1 contrast this text needs, but this lighter, softer tan
   still measures ~6:1 with the dark text. */
.site-footer__form-btn:hover {
    background-color: #c9a892 !important;
    color: #302e2f !important;
}

/* "Stay Informed About" newsletter heading + topic list, above the
   subscribe form. */
.site-footer__newsletter-title {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-family: "Prata";
}

.site-footer__newsletter-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 12px 0 0;
    padding: 0;
    color: #a8a8a8;
    font-size: 17px;
}

.site-footer__newsletter-list li {
    margin: 0 0 8px;
}

.site-footer__newsletter-list li + li:before {
    content: '\2022';
    display: inline-block;
    margin: 0 10px;
    color: #d99578;
}

/* Contact page hero banner: no photo for now - the Egypt template's own
   stock banner image doesn't fit the gallery, and we don't have a real
   photo worth using here yet. A solid color reads as a deliberate choice
   rather than a missing image. Deep rust/terracotta - a darker shade of
   the site's own accent orange (#d99578) - rather than the same charcoal
   as the nav/footer, so this page doesn't read as a re-skinned nav bar;
   still dark enough for the white title/text to stay readable (~7.9:1
   contrast). Swap in a real photo later by adding a background-image
   rule back. */
.inner-banner--contact {
    background-color: #7a4230;
    background-image: none;
}

/* Same treatment for the not-yet-built section pages (Artists, Gallery,
   Exhibitions, Garden) - these exist only so the nav links resolve to a
   real page instead of a 404 this sprint, and share the Contact page's
   "no photo yet" header styling rather than duplicating the color choice
   with a slightly different value. */
.inner-banner--placeholder {
    background-color: #7a4230;
    background-image: none;
}

.inner-banner--placeholder .container,
.inner-banner--contact .container {
    padding-top: 80px;
    padding-bottom: 60px;
}

/* Identity pages (Login / Register / Manage / Change Password). */
.auth-page {
    padding: 80px 0;
}

.auth-page .block-title {
    margin-bottom: 35px;
}

.auth-page__box {
    max-width: 480px;
    margin: 0 auto;
    background-color: #fff;
    border: 1px solid #ebebeb;
    padding: 45px 50px;
}

/* Account sidebar (My Account / Change Password) - reuses the same
   vertical-link look as the template's own FAQ category menu. Only the
   Manage pages use .auth-page__layout; Login/Register/ForgotPassword etc.
   keep the single centered .auth-page__box (its own margin:0 auto). */
.auth-page__layout {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    max-width: 960px;
    margin: 0 auto;
}

.auth-page__layout .auth-page__box {
    max-width: none;
    margin: 0;
    flex: 1;
    min-width: 0;
}

.auth-page__sidebar {
    width: 200px;
    flex-shrink: 0;
    padding-top: 45px;
}

/* Built on Bootstrap's .nav (used for JS tab-switching, same as the Gallery
   News tabs), which defaults to a horizontal flex row - override back to a
   vertical list. */
.auth-page__sidebar-list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.auth-page__sidebar-list .nav-item {
    border-bottom: 1px solid #e4e4e4;
}

.auth-page__sidebar-list .nav-item:last-child {
    border-bottom: 0;
}

.auth-page__sidebar-list .nav-link {
    display: block;
    padding: 12px 0;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #777777;
    transition: 0.4s;
}

.auth-page__sidebar-list .nav-link:hover,
.auth-page__sidebar-list .nav-link.active {
    /* #d99578 on this white sidebar background measures ~2.46:1, well
       under the 4.5:1 WCAG AA needs for normal text - this darker shade
       of the same accent (already used for the "unverified" badge text
       elsewhere on this page) measures ~5.7:1. */
    color: #935828;
    padding-left: 10px;
}

@media (max-width: 767px) {
    .auth-page__layout {
        flex-direction: column;
        gap: 20px;
    }

    .auth-page__sidebar {
        width: 100%;
        padding-top: 0;
    }
}

.auth-page__box--centered {
    text-align: center;
}

.auth-page__summary {
    margin-bottom: 20px;
}

.auth-page__summary ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    color: #d9534f;
}

.auth-page .form-group {
    margin-bottom: 22px;
}

.auth-page label {
    display: block;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #6f6f6f;
    margin-bottom: 8px;
}

.auth-page .form-check label {
    display: inline-block;
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 0;
    margin-left: 6px;
}

.auth-page .form-control {
    height: 48px;
    border: 1px solid #dedede;
    border-radius: 0;
    padding: 0 15px;
    box-shadow: none;
    transition: border-color 0.3s ease;
}

.auth-page .form-control:focus {
    /* #d99578 on this white field background measures ~2.46:1, under the
       3:1 WCAG AA needs for a non-text UI component like a focus border
       (WCAG 1.4.11) - the same darker shade used elsewhere on this page
       measures ~5.7:1. */
    border-color: #935828;
    box-shadow: none;
}

.auth-page textarea.form-control {
    height: auto;
    padding: 12px 15px;
    resize: vertical;
}

.auth-page__submit {
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

.auth-page__alt-link {
    margin-top: 25px;
    margin-bottom: 0;
    text-align: center;
    font-size: 14px;
}

.auth-page__alt-link a {
    /* #d99578 on this white background measures ~2.46:1, under the 4.5:1
       WCAG AA needs for normal text - the darker shade used elsewhere on
       this page measures ~5.7:1. */
    color: #935828;
}

.auth-page__status {
    background-color: #f4f8f2;
    border: 1px solid #d5e8cd;
    color: #4b7a3b;
    padding: 12px 18px;
    margin-bottom: 25px;
    font-size: 14px;
}

.auth-page__details {
    margin-bottom: 30px;
}

.auth-page__details dt {
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #6f6f6f;
    margin-top: 15px;
}

.auth-page__details dt:first-child {
    margin-top: 0;
}

.auth-page__details dd {
    font-size: 17px;
    margin-bottom: 0;
}

.auth-page__badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    vertical-align: middle;
}

.auth-page__badge--warning {
    background-color: #fdf3ea;
    border: 1px solid #f0d3b8;
    color: #a4622d;
}

/* Sits right next to the "Not verified" badge rather than down with the
   other account actions, so the "do this now" link is next to the thing
   it fixes. */
.auth-page__resend-form {
    display: inline-block;
    margin: 8px 0 0;
    vertical-align: middle;
}

.auth-page__resend-link {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    /* #d99578 on this white background measures ~2.46:1, under the 4.5:1
       WCAG AA needs for normal text - the darker shade used elsewhere on
       this page measures ~5.7:1. */
    color: #935828;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.4s ease;
}

.auth-page__resend-link:hover {
    color: #302e2f;
}

/* Stacks action buttons with consistent spacing between them. */
.auth-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.auth-page__actions form {
    margin: 0;
}

/* Favorites isn't wired to real data yet (no Artist/artwork records to
   favorite), so this is just an empty-state placeholder for now - the
   section is there so the page doesn't need reworking once favoriting
   ships. */
.auth-page__favorites {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e4e4e4;
}

.auth-page__favorites-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.auth-page__favorites-empty {
    color: #777777;
    font-size: 15px;
    margin-bottom: 0;
}

/* Gallery News tabs: put the "Gallery News" title and the News/Videos
   toggle on one row, and style the tabs to match the template's own
   underline-tab pattern (used on the Plan Your Visit page) instead of
   Bootstrap's default bordered-box tabs. Scoped to #galleryNewsTabs so it
   doesn't affect any other .nav-tabs elsewhere on the site.
   The tabs sit right next to the title (not pushed to the far right like
   the old site) and a bottom border separates the whole row from the
   content below. */
.gallery-news__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e4e4e4;
}

#galleryNewsTabs.nav-tabs {
    border-bottom: 0;
    margin: 0;
    flex-wrap: nowrap;
}

#galleryNewsTabs.nav-tabs .nav-item + .nav-item {
    margin-left: 30px;
}

#galleryNewsTabs.nav-tabs .nav-link {
    font-family: "Prata", serif;
    font-size: 16px;
    color: #302e2f;
    background-color: transparent;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid transparent;
    border-radius: 0;
    transition: 0.4s;
}

#galleryNewsTabs.nav-tabs .nav-link:hover,
#galleryNewsTabs.nav-tabs .nav-link.active {
    background-color: transparent;
    /* #d99578 on this white section's background measures ~2.46:1, under
       the 4.5:1 WCAG AA needs for normal text (the border-bottom, as a
       non-text UI component, needs 3:1 and also falls short) - the darker
       shade used elsewhere on the site measures ~5.7:1. */
    color: #935828;
    border-bottom-color: #935828;
}

/* Gallery section (Visit/Location/History/Publications tabs): matches the
   Egypt template's own "Plan Your Visit" tab component exactly (pulled from
   request-visit.html - centered tabs, 25px/30px link padding, thin 1px
   underline on a beige section background) rather than the narrower
   left-aligned style used for the Gallery News tabs. Scoped to a reusable
   class instead of an id so other section pages (Exhibitions, Garden) can
   use it too without duplicating the rules. */
.gallery-section {
    padding-top: 25px;
    padding-bottom: 120px;
    background-color: #f2ebe8;
}

.section-tabs.nav-tabs {
    justify-content: center;
    align-items: center;
    margin: 0 0 30px;
    border-bottom: 1px solid #dedbdb;
    flex-wrap: wrap;
}

.section-tabs.nav-tabs .nav-link {
    font-family: "Prata", serif;
    font-size: 16px;
    color: #302e2f;
    background-color: transparent;
    padding: 25px 30px;
    border-color: transparent !important;
    transition: 0.4s;
}

.section-tabs.nav-tabs .nav-link:hover,
.section-tabs.nav-tabs .nav-link.active {
    background-color: transparent;
    /* #d99578 on this section's cream background (#f2ebe8) measures
       ~2.4:1, under the 4.5:1 WCAG AA needs for normal text (the
       border-bottom, as a non-text UI component, needs 3:1 and also
       falls short) - the darker shade used elsewhere on the site
       measures ~4.9:1 here. */
    color: #935828 !important;
    border-bottom: 1px solid #935828 !important;
}

.gallery-section__box {
    padding: 60px 30px 61px;
    background-color: #fff;
    font-size: 15px;
    line-height: 1.8;
    color: #656565;
}

.gallery-section__map {
    margin-bottom: 30px;
}

.gallery-section__columns {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 20px;
}

.gallery-section__column {
    flex: 1 1 260px;
}

@media (max-width: 767px) {
    .gallery-section__columns {
        flex-direction: column;
    }
}

.gallery-section__hero {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 30px;
}

.gallery-section__history-images {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
}

#history-tab h2,
#history-tab h3 {
    text-align: center;
}

.gallery-section__history-image {
    flex: 1 1 260px;
    max-width: 100%;
    height: auto;
    display: block;
}

.gallery-section__history-image-placeholder {
    flex: 1 1 260px;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f3f1;
    border: 1px dashed #cfcac5;
    color: #9b958f;
    font-size: 13px;
}

.gallery-section__empty {
    color: #9b958f;
}

@media (max-width: 767px) {
    .section-tabs.nav-tabs .nav-item + .nav-item {
        margin-left: 20px;
    }
}

/* Artists list page: a status filter sidebar (built on the template's own
   .sidebar/.sidebar__cat-list, used elsewhere for blog categories) next to a
   grid of artist cards (built on the template's .team-one__single, used
   elsewhere for staff/team listings). Top/bottom padding matches the other
   section pages rather than introducing a one-off value. */
.artists-page {
    padding-top: 25px;
    padding-bottom: 120px;
}

/* The template's .sidebar__cat-list pairs its hover/active color with
   #d99578 on this page's white background, which only measures ~2.46:1 -
   well under the 4.5:1 WCAG AA needs for normal text. The darker shade used
   for the same accent elsewhere on the site measures ~5.7:1. Scoped to this
   page since .sidebar__cat-list is a shared template class other
   not-yet-built pages may reuse differently. */
.artists-page .sidebar__cat-list li a:hover,
.artists-page .sidebar__cat-list li a.active {
    color: #935828;
}

.artists-page .sidebar__cat-list li a:hover .sidebar__cat-list__icon:before,
.artists-page .sidebar__cat-list li a.active .sidebar__cat-list__icon:before {
    content: '-';
    color: #935828;
}

.artists-page .sidebar__cat-list li a.active .sidebar__cat-list__count {
    opacity: 1;
}

/* Artist cards reuse the template's own ".collection-two" item markup (image
   + dark hover overlay + category/title below), but without the section-level
   ".collection-two"/".collection-two__collection-page" classes - this page
   already gets its background and padding from ".artists-page" above, and
   adding those classes too would both double the section padding and fight
   over the background color. The category/title's default hover color
   (#d99578) assumes a white page background either way, same as every other
   "collection-two__collection-page" use of this component, and measures the
   same ~2.46:1 here - under the 4.5:1 WCAG AA needs for normal text. The
   darker shade used elsewhere on the site measures ~5.7:1. */
.artists-page .collection-two__category {
    color: #777777;
}

.artists-page .collection-two__category a:hover,
.artists-page .collection-two__title a:hover {
    color: #935828;
}

.artists-page .collection-two__title {
    color: #302e2f;
}

/* Artist checklist (Kevin's "Artist Tab" list): plain checkbox list rather than
   the template's own component, since nothing in the Egypt template covers a
   checkbox-driven list like this. Kept simple - no custom checkbox graphic -
   so focus/checked states stay native and accessible. Lives in the sidebar
   column (narrower than the old full-width layout), so sized down to fit
   alongside the Primary Filter buttons above it. */
.artist-checklist {
    margin-bottom: 15px;
    max-height: 420px;
    overflow-y: auto;
    font-size: 14px;
}

.artist-checklist__item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
}

.artist-checklist__label {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0;
    color: #302e2f;
    cursor: pointer;
}

.artist-checklist__label input[type="checkbox"] {
    flex-shrink: 0;
}

.artist-checklist__tag {
    font-size: 11px;
    color: #935828;
    border: 1px solid #935828;
    border-radius: 3px;
    padding: 0 5px;
    white-space: nowrap;
}

.artist-checklist__profile-link {
    color: #777777;
    flex-shrink: 0;
}

.artist-checklist__profile-link:hover {
    color: #935828;
}

.artists-page__artwork-results {
    border-top: 1px solid #ebebeb;
    padding-top: 30px;
}

.artist-list-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #777777;
}

.artist-list-options__option {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 0;
    cursor: not-allowed;
}

.artwork-display-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 15px 0 20px;
    font-size: 14px;
    color: #777777;
}

.artwork-display-options__option {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
    cursor: not-allowed;
}
