.epf-photo-header .et_pb_row > .et_pb_column {
    width: fit-content !important;
    max-width: 100%;
    float: none;
    margin-left: auto !important;
    margin-right: auto !important;
}

.epf-photo-header .epf-photo-subheading,
.epf-photo-header .epf-photo-subheading .et_pb_text_inner,
.epf-photo-header .epf-photo-subheading p {
    text-align: right !important;
}

body #page-container .epf-photo-header .et_pb_text.epf-photo-subheading {
    width: 100% !important;
}

body .mfp-wrap button.mfp-arrow.mfp-arrow-left::after,
body .mfp-wrap button.mfp-arrow.mfp-arrow-right::after {
    background-color: #36b5cde0 !important;
}

@media (max-width: 767px) {
    body.page-id-8704 #main-content .sub-page-header .epf-photo-title-label {
        display: block;
        font-size: inherit !important;
        line-height: inherit !important;
        background: linear-gradient(180deg, #36b5cd 0%, #087bb5 100%);
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
    }

    body.page-id-8704 #main-content .sub-page-header .epf-photo-title-year {
        display: block;
        margin-top: 2px;
        color: #ffef98;
        -webkit-text-fill-color: #ffef98;
    }
}

.epf-photo-notice-section {
    padding: 0 0 64px;
    background: #fffdf0;
}

.epf-photo-notice {
    box-sizing: border-box;
    width: calc(100% - 96px);
    max-width: 1440px;
    padding: 40px;
    margin: 0 auto;
    border: 1px solid #c8d8d0;
    background: #e3f2f0;
    color: #173e39;
    font-size: 18px;
    line-height: 1.7;
    text-align: left;
}

body #page-container .epf-photo-notice h2 {
    padding: 0;
    margin: 0 0 24px;
    color: #173e39;
    font-family: "DIN Neuzeit Grotesk", sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
}

body #page-container .epf-photo-notice p {
    padding: 0;
    margin: 0;
}

body #page-container .epf-photo-notice a {
    color: #a34e00;
    text-decoration: none;
}

body #page-container .epf-photo-notice a:hover {
    color: #803d00;
    opacity: 1;
}

@media (max-width: 800px) {
    .epf-photo-notice {
        width: calc(100% - 56px);
    }
}

@media (max-width: 480px) {
    .epf-photo-notice {
        width: calc(100% - 32px);
    }
}

@media (max-width: 980px) {
    .epf-photo-notice {
        padding: 28px;
    }
}

@media (max-width: 640px) {
    .epf-photo-notice {
        padding: 24px 18px;
    }

    .epf-photo-notice-section {
        padding-bottom: 44px;
    }
}

.epf-photo-return {
    padding: 0 16px 64px;
    background: #fffdf0;
    text-align: center;
}

body #page-container .epf-photo-return a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
    box-sizing: border-box;
    max-width: 100%;
    border: 1px solid #a8c0b9;
    border-radius: 0;
    background: #fffdf0;
    color: #173e39;
    font-size: 16px;
    line-height: 1.5;
}

body #page-container .epf-photo-return a:hover {
    background: #d8f0f4;
    color: #173e39;
}

.epf-photo-return a:focus-visible {
    outline: 3px solid #36b5cd;
    outline-offset: 4px;
}

.epf-photo-quick-links {
    box-sizing: border-box;
    padding: 0 48px 64px;
    background: #fffdf0;
    color: #173e39;
}

body #page-container .epf-photo-quick-links h2 {
    max-width: 1440px;
    margin: 0 auto 24px;
    padding: 0;
    color: #173e39;
    font-family: "DIN Neuzeit Grotesk", sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.15;
    text-align: center;
}

body #page-container .epf-photo-quick-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.epf-photo-quick-grid li {
    display: flex;
    flex: 0 0 calc((100% - 80px) / 5);
    min-width: 0;
}

body #page-container .epf-photo-quick-card {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #c8d8d0;
    border-radius: 0;
    background: #f6fdff;
    color: #173e39;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
    transition: opacity 180ms ease;
}

.epf-photo-quick-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 0;
    background: #e3f2f0;
}

.epf-photo-quick-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body #page-container .epf-photo-quick-card h3 {
    margin: 0;
    padding: 0 8px;
    color: #173e39;
    font-family: "DIN Neuzeit Grotesk", sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.35;
}

body #page-container .epf-photo-quick-card .epf-photo-quick-button {
    display: block;
    box-sizing: border-box;
    margin: auto 8px 8px;
    padding: 12px 22px;
    border: 1px solid #a8c0b9;
    border-radius: 0;
    background: #fffdf0;
    color: #173e39;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 1px;
    text-align: center;
}

body #page-container .epf-photo-quick-card:hover .epf-photo-quick-button,
body #page-container .epf-photo-quick-card:focus-visible .epf-photo-quick-button {
    background: #d8f0f4;
}

body #page-container .epf-photo-quick-button::after {
    display: none;
}

.epf-photo-quick-grid li:nth-child(even) .epf-photo-quick-card {
    background: #e3f2f0;
}

body #page-container .epf-photo-quick-card:hover {
    opacity: .9;
}

.epf-photo-quick-card:focus-visible {
    outline: 3px solid #36b5cd;
    outline-offset: 4px;
}

@media (max-width: 1100px) {
    .epf-photo-quick-grid li {
        flex-basis: calc((100% - 40px) / 3);
    }
}

@media (max-width: 800px) {
    .epf-photo-quick-links {
        padding-right: 28px;
        padding-left: 28px;
    }

    .epf-photo-quick-grid li {
        flex-basis: calc((100% - 20px) / 2);
    }
}

@media (max-width: 480px) {
    .epf-photo-quick-links {
        padding: 0 16px 44px;
    }

    body #page-container .epf-photo-quick-grid {
        gap: 12px;
    }

    .epf-photo-quick-grid li {
        flex-basis: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    body #page-container .epf-photo-quick-card {
        transition: none;
    }
}

body #page-container .epf-photo-gallery.et_pb_section {
    padding: 64px 0 72px;
    background: #fffdf0;
    color: #173e39;
}

body #page-container .epf-photo-gallery > .et_pb_row {
    width: calc(100% - 96px) !important;
    max-width: 1440px !important;
    margin: 0 auto !important;
    box-sizing: border-box;
    padding: 0;
}

body #page-container .epf-photo-gallery .et_pb_gallery {
    box-sizing: border-box;
    padding: 32px;
    border: 1px solid #c8d8d0;
    border-radius: 0;
    background: #f6fdff;
    box-shadow: 0 6px 24px rgba(23, 62, 57, .05);
}

.epf-photo-gallery .epf-photo-intro {
    max-width: 850px;
    margin: 0 auto 40px !important;
    color: #173e39;
    text-align: center;
}

.epf-photo-intro::before {
    content: "";
    display: block;
    width: 48px;
    height: 8px;
    margin: 0 auto 28px;
    background: #36b5cd;
    transform: rotate(-8deg);
}

body #page-container .epf-photo-intro .et_pb_text_inner {
    text-align: center;
    color: #173e39;
}

.epf-photo-intro .epf-photo-kicker {
    margin: 0 0 18px;
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

body #page-container .epf-photo-intro h2 {
    margin: 0 0 24px;
    padding: 0;
    color: #173e39;
    font-size: clamp(36px, 4.8vw, 66px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.035em;
}

.epf-photo-intro p {
    margin: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.6;
}

.epf-photo-gallery .et_pb_gallery_items {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.epf-photo-gallery .et_pb_gallery_items::before,
.epf-photo-gallery .et_pb_gallery_items::after {
    display: none;
}

body #page-container .epf-photo-gallery .et_pb_gallery_grid .et_pb_gallery_item {
    box-sizing: border-box;
    float: none;
    width: 100% !important;
    margin: 0 !important;
    padding: 10px;
    border: 1px solid #c8d8d0;
    border-radius: 8px;
    background: #e3f2f0;
    box-shadow: 0 3px 12px rgba(23, 62, 57, .06);
}

.epf-photo-gallery .et_pb_gallery_image {
    overflow: hidden;
    border-radius: 4px;
}

.epf-photo-gallery .et_pb_gallery_image a {
    display: block;
}

.epf-photo-gallery .et_pb_gallery_image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 250ms ease;
}

.epf-photo-gallery .et_pb_gallery_image a:hover img,
.epf-photo-gallery .et_pb_gallery_image a:focus-visible img {
    transform: scale(1.035);
}

.epf-photo-gallery .et_overlay {
    border: 0;
    background: rgba(23, 62, 57, .2);
}

.epf-photo-gallery .et_overlay::before {
    color: #fffdf0;
}

body #page-container .epf-photo-gallery .et_pb_gallery_pagination {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #c8d8d0;
}

body #page-container .epf-photo-gallery .et_pb_gallery_pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 0;
    text-align: center;
}

body #page-container .epf-photo-gallery .et_pb_gallery_pagination ul li {
    padding: 0;
}

body #page-container .epf-photo-gallery .et_pb_gallery_pagination ul li a {
    display: block;
    min-width: 44px;
    padding: 10px 16px;
    border: 1px solid #c8d8d0;
    border-radius: 6px;
    background: #f6fdff;
    color: #173e39;
    font-size: 16px;
    line-height: 24px;
}

body #page-container .epf-photo-gallery .et_pb_gallery_pagination ul li a.active,
body #page-container .epf-photo-gallery .et_pb_gallery_pagination ul li a:hover {
    border-color: #173e39;
    background: #173e39;
    color: #fffdf0;
}

@media (max-width: 980px) {
    body #page-container .epf-photo-gallery > .et_pb_row {
        width: calc(100% - 56px) !important;
    }

    .epf-photo-gallery .et_pb_gallery_items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 600px) {
    body #page-container .epf-photo-gallery.et_pb_section {
        padding: 36px 0 44px;
    }

    body #page-container .epf-photo-gallery > .et_pb_row {
        width: calc(100% - 32px) !important;
    }

    body #page-container .epf-photo-gallery .et_pb_gallery {
        padding: 16px;
    }

    .epf-photo-gallery .et_pb_gallery_items {
        gap: 12px;
    }

    body #page-container .epf-photo-gallery .et_pb_gallery_grid .et_pb_gallery_item {
        padding: 5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .epf-photo-gallery .et_pb_gallery_image img {
        transition: none;
    }
}
