@media screen and (max-width: 800px) {
        .s-header__menu-links .current {
            visibility: hidden !important;
        }
    .lead-nav {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }
    .lead-nav__btn {
        width: 100%;
        max-width: 350px;
        text-align: center;
        font-size: 22px;
        padding-left: 0;
        padding-right: 0;
        margin: 0 auto;
        display: block;
    }
    .pagemain ul li {
        margin-bottom: 1.5em !important;
            font-size: 0.95em;
    }
        .pagemain ul li b,
        .pagemain ul li em,
        .pagemain ul li a {
            font-size: 1em;
        }
}
@media screen and (max-width: 800px) {
    .s-pageheader .page-title {
        font-size: 80px !important;
    }
}
 
.s-pageheader {
	background-image: url("../images/nyo-picture.jpg");
	background-size: cover;
	background-position-x: center;
    background-position-y: 22%;
	background-repeat: no-repeat;
    padding-top: 13rem !important;
    opacity: 98%;

}

.s-header__menu-links a {
    display: inline-block;
    font-family: var(--font-1);
    font-weight: 400;
    font-size: 1.85rem;
    line-height: var(--vspace-1);
    color: rgba(255, 255, 255, 0.805);
    padding: 0 1.7rem;
    border-radius: 6px;
    text-decoration: none;
    position: relative;
    transition: color 0.2s;
    z-index: 1;
}

.s-header__menu-links a::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 85%; /* Match this value for both hover and current */
    height: 100%;
    background: rgb(213, 213, 213);
    border-radius: 6px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.25s;
}


.s-header__menu-links a:hover::before,
.s-header__menu-links a:focus::before,
.s-header__menu-links .current a::before {
    opacity: 1;
}

.s-header__menu-links .current a {
    color: #222 !important;
    position: relative;
    border-bottom: none !important;
    box-shadow: none !important;
    background: none !important;
}
.s-header__menu-links a:hover,
.s-header__menu-links a:focus {
    color: #222;
}

.s-header__menu-links a:hover::before,
.s-header__menu-links a:focus::before {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
}

.s-header__menu-links .current a {
    color: #222 !important;
    position: relative;
    border-bottom: none !important; /* Remove underline */
    box-shadow: none !important;    /* Remove any shadow underline */
}

.s-header__menu-links .current a::before {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
    background: rgb(213, 213, 213);
}


.logo-text {
    font-family: serif;         /* or your .intro-big-title font-family */
    font-size: 2.5rem;          /* adjust as needed */
    font-weight: bold;
    color: #fff;                /* or your preferred color */
    letter-spacing: 2px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.25);
    display: inline-block;
}

.s-pageheader__overlay-text {
    position: absolute;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-weight: 300;
    top: 14rem;
    right: 2rem;
    color: #fff;
    text-align: right;
    background: rgba(0, 0, 0, 0);
    padding: 0.5rem 0.85rem;
    border-radius: 4px;
    z-index: 0; /* ensures header (with higher z-index) sits above this text */
    pointer-events: auto;
    font-size: 1.8rem;
}

.column.lead {
    text-align: left;
}

.lead-nav__btn {
    font-size: 0.9rem; /* or try 14px, 0.85rem, etc. */
}

.s-pagecontent
    {
        padding-top: 4vh !important;
        padding-bottom: 1vh !important;
        line-height: 1.8;
        font-size: 20px;
    }

html {
  scroll-behavior: smooth;
}


.pagemain .column.lead h2 {
    text-align: left;
    margin-top: 4rem;
    padding-top: 0;
}

.lead-nav {
    margin-bottom: 4rem !important;
}


.s-pagecontent ul,
.s-pagecontent ol,
.pagemain ul,
.pagemain ol {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif
    font-size; 20px; /* adjust as needed (e.g. 16px) */
    line-height: 2.2;

}

ul {
  list-style-type: none; /* Removes the bullets */
  margin: 0;            /* Optional: Removes default margin */
  padding: 0;           /* Optional: Removes default padding/indentation */
}

/* ...existing code... */

.pagemain .lead h2.spacer {
    margin-top: 2rem;
}

.s-pageheader.page-title {
    color: white;
    font-size: 48px;
    text-align: center;
    margin-top: 0px !important;
    margin-bottom: 50px;
}
.caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem; /* optional spacing between items */
    width: 100%;
}
.caption > * {
    float: none;
    width: auto;
}

.row .pagemedia {
    margin-bottom: 1rem;

}

.row .pageintro p {
  font-size: 24px;

}


.lead-nav {
    display: flex;
    gap: 0.75rem;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    margin: 1rem 0 2rem;
}
.lead-nav__btn {
    display: inline-block;
    padding: 1.8rem 1.8rem;
    background: #11111100;
    color: #000000;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 25px;
}


.lead-nav__btn:hover { opacity: 0.7; }

@media (max-width: 700px) {
    .lead-nav { flex-wrap: wrap; justify-content: flex-start; }
}

/* ensure anchor targets are not hidden under the header */
.column.lead h2[id] {
    scroll-margin-top: 6rem;
}


/* Make catalog links black and add underline on hover with animation */
a[href^="Catalog/"] {
    color: #000;
    text-decoration: none;
    position: relative;
    transition: color 0.2s;
}

a[href^="Catalog/"]::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: #000;
    transform: scaleX(0);
    transition: transform 0.2s ease;
    transform-origin: left;
}

a[href^="Catalog/"]:hover::after {
    transform: scaleX(1);
}