/* Final responsive layer for the public World Photography League Awards experience. */

.pa12-menu-toggle__icon {
    display: none;
}

@media (max-width: 860px) {
    html,
    body.pa12-theme {
        max-width: 100%;
        overflow-x: clip;
    }

    body.pa12-theme .pa12-header {
        position: sticky !important;
        top: 0;
        min-height: 72px !important;
        border-bottom: 1px solid rgba(223, 148, 0, .28) !important;
        background: #11100e !important;
    }

    body.pa12-theme .pa12-header__inner {
        width: calc(100% - 32px) !important;
        min-height: 72px !important;
        padding: 0 !important;
        gap: 12px !important;
    }

    body.pa12-theme .pa12-brand {
        display: flex !important;
        min-width: 0 !important;
        max-width: 196px;
        flex: 1 1 auto;
        overflow: hidden;
    }

    body.pa12-theme .pa12-brand img {
        display: block !important;
        width: 178px !important;
        max-width: 100% !important;
        max-height: 48px !important;
        object-fit: contain !important;
        object-position: left center !important;
        filter: none !important;
    }

    body.pa12-theme .pa12-menu-toggle,
    body.pa12-theme .pa12-menu-toggle.pa12-button {
        display: grid !important;
        width: 48px !important;
        min-width: 48px !important;
        height: 44px !important;
        min-height: 44px !important;
        flex: 0 0 48px !important;
        padding: 0 !important;
        place-items: center !important;
        border: 1px solid rgba(241, 196, 91, .65) !important;
        border-radius: 4px !important;
        background: transparent !important;
        box-shadow: none !important;
        color: #fff !important;
    }

    body.pa12-theme .pa12-menu-toggle[aria-expanded="true"] {
        background: #df9400 !important;
        color: #17120b !important;
    }

    .pa12-menu-toggle__icon {
        display: grid;
        width: 20px;
        gap: 4px;
    }

    .pa12-menu-toggle__icon i {
        display: block;
        width: 20px;
        height: 2px;
        background: currentColor;
        transition: transform 180ms ease, opacity 180ms ease;
    }

    .pa12-menu-toggle[aria-expanded="true"] .pa12-menu-toggle__icon i:first-child {
        transform: translateY(6px) rotate(45deg);
    }

    .pa12-menu-toggle[aria-expanded="true"] .pa12-menu-toggle__icon i:nth-child(2) {
        opacity: 0;
    }

    .pa12-menu-toggle[aria-expanded="true"] .pa12-menu-toggle__icon i:last-child {
        transform: translateY(-6px) rotate(-45deg);
    }

    body.pa12-theme header.pa12-header #pa12-menu.pa12-nav {
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-height: calc(100svh - 72px);
        margin: 0 !important;
        padding: 12px 16px 18px !important;
        overflow-y: auto;
        border: 0 !important;
        border-top: 1px solid rgba(223, 148, 0, .3) !important;
        border-radius: 0 !important;
        background: #11100e !important;
        box-shadow: 0 18px 36px rgba(0, 0, 0, .5) !important;
    }

    body.pa12-theme header.pa12-header #pa12-menu.pa12-nav.is-open {
        background-color: #11100e !important;
        background-image: none !important;
    }

    body.pa12-theme .pa12-menu {
        gap: 0 !important;
    }

    body.pa12-theme .pa12-menu > li,
    body.pa12-theme .pa12-nav > a {
        border-bottom: 1px solid rgba(255, 255, 255, .12) !important;
    }

    body.pa12-theme .pa12-menu > li > a,
    body.pa12-theme .pa12-menu .pa12-menu-link,
    body.pa12-theme .pa12-nav > a {
        display: flex !important;
        width: 100% !important;
        min-height: 46px !important;
        align-items: center !important;
        padding: 0 10px !important;
        border-radius: 0 !important;
        color: #fff !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        letter-spacing: 0 !important;
        text-transform: uppercase !important;
    }

    body.pa12-theme .pa12-menu-parent__row {
        min-height: 46px !important;
    }

    body.pa12-theme .pa12-submenu-toggle {
        width: 44px !important;
        height: 46px !important;
    }

    body.pa12-theme .pa12-menu > li > .sub-menu {
        margin: 0 0 8px 10px !important;
        background: rgba(255, 255, 255, .04) !important;
    }

    body.pa12-theme .pa12-auth {
        margin-top: 14px !important;
    }

    body.pa12-theme .pa12-header-cta {
        min-height: 48px !important;
        border-radius: 0 !important;
        background: #df9400 !important;
        color: #17120b !important;
    }
}

@media (max-width: 760px) {
    body.pa12-theme .gsp-wrap,
    body.pa12-theme .gsp-hero__content,
    body.pa12-theme .pa12-shell,
    body.pa12-theme .pa12-prose {
        width: calc(100% - 32px) !important;
        max-width: none !important;
        margin-inline: auto !important;
    }

    body.pa12-theme .gsp-ticker {
        display: flex !important;
        min-height: 32px !important;
        justify-content: space-between !important;
        gap: 12px !important;
        padding: 0 16px !important;
        overflow: hidden !important;
        scrollbar-width: none;
        font-size: 9px !important;
        letter-spacing: 0 !important;
    }

    body.pa12-theme .gsp-ticker span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.pa12-theme .gsp-ticker span:nth-child(3) {
        display: none;
    }

    body.pa12-theme .gsp-hero {
        min-height: max(540px, calc(100svh - 150px)) !important;
    }

    body.pa12-theme .gsp-hero__content {
        min-height: inherit !important;
        justify-content: center !important;
        padding: 64px 0 72px !important;
    }

    body.pa12-theme .gsp-hero__slide {
        inset: 0 !important;
        width: 100% !important;
    }

    body.pa12-theme .gsp-hero__shade {
        background: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.7)) !important;
    }

    body.pa12-theme .gsp-hero h1 {
        max-width: 100% !important;
        font-size: 72px !important;
        line-height: .82 !important;
        letter-spacing: 0 !important;
        overflow-wrap: normal;
    }

    body.pa12-theme .gsp-hero__lead {
        max-width: 32ch;
        margin: 26px 0 22px !important;
        font-size: 15px !important;
        line-height: 1.5 !important;
    }

    body.pa12-theme .gsp-hero__actions {
        display: grid !important;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px !important;
    }

    body.pa12-theme .gsp-hero__actions .gsp-button,
    body.pa12-theme .gsp-button {
        width: 100%;
        min-width: 0 !important;
        min-height: 48px;
        gap: 8px !important;
        padding: 12px !important;
        font-size: 9px !important;
        letter-spacing: 0 !important;
        line-height: 1.15;
    }

    body.pa12-theme .gsp-hero__edition {
        top: 20px !important;
        right: 16px !important;
    }

    body.pa12-theme .gsp-hero__footer {
        right: 16px !important;
        bottom: 18px !important;
        left: 16px !important;
        gap: 12px;
        font-size: 8px !important;
        letter-spacing: 0 !important;
    }

    body.pa12-theme .gsp-slider-dots {
        right: auto !important;
        bottom: 19px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    body.pa12-theme .gsp-featured,
    body.pa12-theme .gsp-about,
    body.pa12-theme .gsp-countdown,
    body.pa12-theme .gsp-curated,
    body.pa12-theme .gsp-prizes,
    body.pa12-theme .gsp-jury,
    body.pa12-theme .gsp-news,
    body.pa12-theme .gsp-categories,
    body.pa12-theme .gsp-timeline,
    body.pa12-theme .gsp-league,
    body.pa12-theme .gsp-league-showcase,
    body.pa12-theme .gsp-league-gallery,
    body.pa12-theme .gsp-magazine-callout {
        padding: 64px 0 !important;
    }

    body.pa12-theme .gsp-section-bar,
    body.pa12-theme .gsp-section-intro {
        display: grid !important;
        grid-template-columns: 1fr !important;
        align-items: start !important;
        gap: 16px !important;
        margin-bottom: 30px !important;
    }

    body.pa12-theme .gsp-section-bar h2,
    body.pa12-theme .gsp-section-intro h2,
    body.pa12-theme .gsp-about h2,
    body.pa12-theme .gsp-timeline h2,
    body.pa12-theme .gsp-magazine-callout h2,
    body.pa12-theme .gsp-league h2 {
        max-width: 100%;
        font-size: 42px !important;
        line-height: .94 !important;
        letter-spacing: 0 !important;
        overflow-wrap: anywhere;
    }

    body.pa12-theme .gsp-featured-grid,
    body.pa12-theme .gsp-about__grid,
    body.pa12-theme .gsp-curated-grid,
    body.pa12-theme .gsp-news-grid,
    body.pa12-theme .gsp-prizes-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: none !important;
        gap: 12px !important;
    }

    body.pa12-theme .gsp-featured-grid .gsp-work,
    body.pa12-theme .gsp-curated-grid .gsp-work {
        min-height: 300px !important;
        grid-column: auto !important;
        grid-row: auto !important;
    }

    body.pa12-theme .gsp-countdown__inner,
    body.pa12-theme .gsp-magazine-callout__grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }

    body.pa12-theme .gsp-magazine-callout__actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    body.pa12-theme .gsp-magazine-callout__badge {
        width: 150px;
        max-width: 100%;
    }

    body.pa12-theme .gsp-league__intro {
        align-items: stretch !important;
        flex-direction: column !important;
        gap: 22px !important;
        padding: 22px 0 32px !important;
    }

    body.pa12-theme .gsp-league-pulse {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        margin-bottom: 36px !important;
    }

    body.pa12-theme .gsp-league-pulse div {
        min-width: 0;
        padding: 18px 12px !important;
    }

    body.pa12-theme .gsp-league-pulse strong {
        font-size: 28px !important;
    }

    body.pa12-theme .gsp-best-photographer {
        grid-template-columns: 72px minmax(0, 1fr) !important;
        gap: 16px !important;
        padding: 18px !important;
    }

    body.pa12-theme .gsp-best-photographer img {
        width: 72px !important;
    }

    body.pa12-theme .gsp-best-photographer h3 {
        font-size: 30px !important;
        letter-spacing: 0 !important;
        overflow-wrap: anywhere;
    }

    body.pa12-theme .gsp-best-photographer .gsp-button {
        grid-column: 1 / -1;
    }

    body.pa12-theme .gsp-photographer-list a {
        grid-template-columns: 30px 42px minmax(0, 1fr) auto !important;
        gap: 10px !important;
    }

    body.pa12-theme .gsp-league-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    body.pa12-theme .gsp-league-thumb {
        min-height: 210px !important;
    }

    body.pa12-theme .pa12-page-hero {
        padding: 44px 0 38px !important;
    }

    body.pa12-theme .pa12-page-hero h1 {
        max-width: 100%;
        margin: 8px 0 0 !important;
        font-size: 42px !important;
        line-height: .94 !important;
        letter-spacing: 0 !important;
        overflow-wrap: normal;
        word-break: normal;
    }

    body.pa12-theme .pa12-prose {
        padding-block: 38px 64px !important;
    }

    body.pa12-theme .photo-league,
    body.pa12-theme .photo-league-membership-portal,
    body.pa12-theme .photo-league-directory {
        max-width: 100%;
    }

    body.pa12-theme .photo-league-directory {
        background: transparent;
    }

    body.pa12-theme .photo-league-results {
        background: transparent;
    }

    body.pa12-theme .photo-league-results > .photo-league-hero {
        width: 100% !important;
        margin: 0 0 28px !important;
        padding: 0 0 22px !important;
        border-bottom-color: rgba(255, 255, 255, .2) !important;
        background: transparent !important;
    }

    body.pa12-theme .photo-league-results > .photo-league-hero h2 {
        margin: 8px 0 !important;
        color: #fff !important;
        font-size: 34px !important;
        line-height: 1 !important;
        letter-spacing: 0 !important;
    }

    body.pa12-theme .photo-league-results > .photo-league-hero p {
        color: rgba(255,255,255,.68) !important;
    }

    body.pa12-theme .photo-league-table-wrap {
        width: 100%;
        overflow-x: auto !important;
        overscroll-behavior-inline: contain;
        border-right: 0;
        border-left: 0;
    }

    body.pa12-theme .photo-league-table {
        width: 100% !important;
        min-width: 780px !important;
        table-layout: auto;
    }

    body.pa12-theme .photo-league-table th,
    body.pa12-theme .photo-league-table td {
        min-width: 0;
        padding: 12px 6px !important;
        overflow-wrap: normal;
        font-size: 12px;
        white-space: nowrap;
    }

    body.pa12-theme .photo-league-table th {
        font-size: 9px;
    }

    body.pa12-theme .photo-league-table th:nth-child(4),
    body.pa12-theme .photo-league-table th:nth-child(5),
    body.pa12-theme .photo-league-table th:nth-child(6),
    body.pa12-theme .photo-league-table td:nth-child(4),
    body.pa12-theme .photo-league-table td:nth-child(5),
    body.pa12-theme .photo-league-table td:nth-child(6) {
        display: table-cell !important;
    }

    body.pa12-theme .photo-league-table th:first-child,
    body.pa12-theme .photo-league-table td:first-child { width: 42px; }
    body.pa12-theme .photo-league-table th:nth-child(3),
    body.pa12-theme .photo-league-table td:nth-child(3) { width: 68px; }
    body.pa12-theme .photo-league-table th:last-child,
    body.pa12-theme .photo-league-table td:last-child { width: 62px; text-align: right; }

    body.pa12-theme .photo-league-member-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    body.pa12-theme .photo-league-member-nav a {
        width: 100%;
        justify-content: center;
        padding: 8px !important;
        text-align: center;
    }

    body.pa12-theme .photo-league-membership,
    body.pa12-theme .photo-league-membership-status,
    body.pa12-theme .photo-league-quota,
    body.pa12-theme .photo-league-judge,
    body.pa12-theme .photo-league-certificates,
    body.pa12-theme .photo-league-hero,
    body.pa12-theme .photo-league-results,
    body.pa12-theme .photo-league-work-detail,
    body.pa12-theme .photo-league-magazines,
    body.pa12-theme .photo-league-directory {
        width: 100% !important;
        margin: 32px auto !important;
    }

    body.pa12-theme .photo-league-membership__plan {
        padding: 24px !important;
    }

    body.pa12-theme .photo-league-profile-head {
        align-items: flex-start;
        padding: 0 !important;
    }

    body.pa12-theme .photo-league-profile-head .photo-league-profile__portrait img {
        border: 0;
        border-radius: 0;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 5;
    }

    body.pa12-theme .photo-league-profile-head h1,
    body.pa12-theme .photo-league-profile-head h2 {
        margin: 10px 0 14px !important;
        color: var(--pls-ink) !important;
        font-size: 42px !important;
        line-height: 1 !important;
        overflow-wrap: anywhere;
    }

    body.pa12-theme .photo-league-profile > h2,
    body.pa12-theme .photo-league-profile-awards > h2 {
        margin: 0 !important;
        padding: 22px 18px 10px !important;
        font-size: 28px !important;
        line-height: 1 !important;
    }

    body.pa12-theme .photo-league-profile .photo-league-works {
        padding: 1px !important;
    }

    body.pa12-theme .photo-league-profile-metrics {
        grid-template-columns: 1fr !important;
    }

    body.pa12-theme .photo-league-profile-metrics div {
        padding: 20px 22px !important;
        border-right: 0 !important;
        border-bottom: 1px solid rgba(255,255,255,.14) !important;
    }

    body.pa12-theme .photo-league-profile-metrics strong {
        font-size: 28px !important;
    }

    body.pa12-theme .photo-league-work-detail {
        gap: 24px !important;
    }

    body.pa12-theme input,
    body.pa12-theme select,
    body.pa12-theme textarea {
        max-width: 100%;
    }
}

@media (max-width: 380px) {
    body.pa12-theme .pa12-header__inner,
    body.pa12-theme .gsp-wrap,
    body.pa12-theme .gsp-hero__content,
    body.pa12-theme .pa12-shell,
    body.pa12-theme .pa12-prose {
        width: calc(100% - 28px) !important;
    }

    body.pa12-theme .pa12-brand {
        max-width: 176px;
    }

    body.pa12-theme .pa12-brand img {
        width: 164px !important;
    }

    body.pa12-theme .gsp-ticker span:nth-child(2) {
        display: none;
    }

    body.pa12-theme .gsp-hero h1 {
        font-size: 58px !important;
    }

    body.pa12-theme .gsp-section-bar h2,
    body.pa12-theme .gsp-section-intro h2,
    body.pa12-theme .gsp-about h2,
    body.pa12-theme .gsp-timeline h2,
    body.pa12-theme .gsp-magazine-callout h2,
    body.pa12-theme .gsp-league h2,
    body.pa12-theme .pa12-page-hero h1 {
        font-size: 36px !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }

    body.pa12-theme .gsp-league-gallery__grid,
    body.pa12-theme .photo-league-directory__grid {
        grid-template-columns: 1fr !important;
    }

    body.pa12-theme .photo-league-member-nav {
        grid-template-columns: 1fr 1fr;
    }

    body.pa12-theme .photo-league-table th,
    body.pa12-theme .photo-league-table td {
        padding-inline: 5px !important;
        font-size: 11px;
    }

    body.pa12-theme .photo-league-table th:nth-child(3),
    body.pa12-theme .photo-league-table td:nth-child(3) { width: 62px; }
    body.pa12-theme .photo-league-table th:last-child,
    body.pa12-theme .photo-league-table td:last-child { width: 56px; }
}

@media (prefers-reduced-motion: reduce) {
    .pa12-menu-toggle__icon i {
        transition: none;
    }
}
