/* Shared layout for the curriculum, community and counsel pages. */
.sub-page {
    background: #f8f8f8;
}

.sub-container {
    width: min(calc(100% - var(--site-gutter) * 2), 1300px);
    margin-inline: auto;
}

.sub-container--narrow {
    max-width: 1220px;
}

.sub-hero {
    position: relative;
    isolation: isolate;
    color: #ffffff;
    background: #111111;
}

.sub-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(90deg, #000000e6, #3d3d3dcc),
    url('../images/sub/banner-wave.jpg') center 50% / cover no-repeat;
    filter: grayscale(1);
}

.sub-hero > .sub-container {
    display: flex;
    flex-direction: column;
    min-height: clamp(380px, 27.5vw, 528px);
    padding-block: clamp(35px, 3.125vw, 60px) 32px;
}

.sub-hero__meta,
.sub-hero__bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #999999;
    font: 12px / 1.5 monospace;
}

.sub-hero__meta {
    padding-bottom: 20px;
    border-bottom: 1px solid #ffffff26;
}

.sub-hero__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-block: 60px;
}

.sub-hero__eyebrow {
    font: 700 18px / 1.6 monospace;
    color: #999999;
}

.sub-hero h1 {
    margin-top: 14px;
    font-size: clamp(40px, 3.3333vw, 64px);
    line-height: 1.2;
    letter-spacing: -2.5px;
}

.sub-hero__lead {
    margin-top: 30px;
    font-size: clamp(26px, 1.875vw, 36px);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -1.2px;
}

.sub-hero__copy {
    margin-top: 30px;
    max-width: 1150px;
    color: #999999;
    font-size: 16px;
    line-height: 2.1;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.sub-hero__body > .sub-button {
    margin-top: 40px;
}

.sub-hero__bottom {
    align-items: center;
    border-top: 1px solid #ffffff26;
    padding-top: 20px;
}

.sub-hero__bottom a {
    font-family: Pretendard, sans-serif;
}

.sub-hero--course .sub-hero__body {
    padding-block: 40px 50px;
}

/* Button reference: white -> #bfbfbf, black -> #404040 on hover. */
.sub-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 240px;
    max-width: 100%;
    min-height: 56px;
    padding: 15px 26px;
    border: 1px solid transparent;
    background: #000000;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    transition: background-color 0.2s;
}

.sub-button:hover,
.sub-button:focus-visible {
    background: #404040;
}

.sub-button--white {
    background: #ffffff;
    color: #222222;
}

.sub-button--white:hover,
.sub-button--white:focus-visible {
    background: #bfbfbf;
}

.sub-button__arrow {
    font-size: 24px;
    line-height: 1;
}

.sub-button--center {
    justify-content: center;
}

.sub-nav {
    display: flex;
    justify-content: center;
    gap: 28px;
    padding-inline: 24px;
    border-bottom: 1px solid #dddddd;
    background: #ffffff;
    overflow-x: auto;
}

.sub-nav a {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    min-height: 76px;
    padding-inline: 24px;
    border-bottom: 3px solid transparent;
    color: #aaaaaa;
    font-size: 16px;
}

.sub-nav a[aria-current='page'] {
    border-color: #222222;
    color: #222222;
    font-weight: 700;
}

.site-nav__link.is-current {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.sub-section {
    padding-block: clamp(70px, 6.25vw, 120px);
    scroll-margin-top: calc(var(--header-height) + 24px);
}

.sub-heading .eyebrow {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 18px;
}

.sub-heading .eyebrow::after {
    content: '';
    width: 30px;
    height: 1px;
    background: #777777;
}

.sub-heading h2 {
    margin-top: 24px;
    font-size: clamp(28px, 1.875vw, 36px);
    line-height: 1.4;
}

.sub-heading > p:last-child:not(.eyebrow) {
    margin-top: 18px;
    color: #999999;
    font-size: 16px;
    line-height: 2;
    word-break: keep-all;
}

.training-list,
.training-grid {
    margin-top: 36px;
    border-top: 3px solid #222222;
    background: #ffffff;
}

.training-list > article {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 20px;
    padding: 30px 34px;
    border-bottom: 1px solid #dddddd;
}

.training-list__number {
    font-size: 28px;
    font-weight: 700;
}

.training-list h3 {
    font-size: 21px;
    line-height: 1.5;
}

.training-list p {
    margin-top: 12px;
    color: #999999;
    font-size: 14px;
    line-height: 1.8;
    word-break: keep-all;
}

.training-list p strong {
    color: #222222;
    font-weight: 600;
}

.training-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-top: 48px;
    border-bottom: 1px solid #dddddd;
}

.training-grid > article {
    padding: 0 28px 36px;
    border-right: 1px solid #dddddd;
}

.training-grid > article:last-child {
    border-right: 0;
}

.training-grid__number {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #000000;
    color: #ffffff;
    font-size: 14px;
}

.training-grid h3 {
    margin-top: 24px;
    font-size: clamp(21px, 1.4583vw, 28px);
    line-height: 1.3;
    letter-spacing: -0.8px;
}

.training-grid p {
    margin-top: 18px;
    color: #999999;
    font-size: 14px;
    line-height: 1.7;
}

/* 예대 입시: 카드 내용 하단 정렬 + 카드 폭이 충분하면 설명을 한 줄로 표시 (<br>은 유지) */
.training-grid--single-line > article {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    container-type: inline-size;
}

@container (min-width: 250px) {
    .training-grid--single-line p {
        font-size: clamp(12px, 4.8cqi, 13px);
        letter-spacing: -0.02em;
        white-space: nowrap;
    }
}

.sub-cta {
    border-top: 1px solid #dddddd;
    background: #ffffff;
    padding-block: 70px;
}

.sub-cta > .sub-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.sub-cta h2 {
    font-size: 30px;
}

.sub-cta .sub-button {
    flex-shrink: 0;
}

/* Community lists, search and detail screens. */

.board-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 28px;
    font-size: 16px;
}

.board-search {
    display: flex;
    gap: 6px;
}

.board-search :is(input, select, button) {
    min-height: 46px;
    padding: 10px 16px;
    border: 1px solid transparent;
    background: #ffffff;
    font-size: 14px;
}

.board-search input {
    width: 240px;
}

.board-search button {
    background: #000000;
    color: #ffffff;
    cursor: pointer;
}

.news-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    border-top: 3px solid #222222;
    text-align: center;
    font-size: 16px;
}

.news-table .column-number {
    width: 10%;
}

.news-table .column-author {
    width: 15%;
}

.news-table .column-date {
    width: 15%;
}

.news-table :is(th, td) {
    padding: 22px 16px;
    border-bottom: 1px solid #dddddd;
}

.news-table th {
    background: #ffffff;
    font-weight: 500;
}

.news-table td:nth-child(2) {
    text-align: left;
}

.news-table a,
.gallery-card__title {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.news-table tr:first-child td {
    background: #eeeeee;
    font-weight: 700;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 42px;
}

.pagination button {
    min-width: 36px;
    min-height: 36px;
    padding: 6px;
    border: 1px solid #f5f5f5;
    border-radius: 0;
    background: #f5f5f5;
    color: #222222;
    font-size: 14px;
    cursor: pointer;
}

.pagination button[aria-current='page'] {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}

.pagination button:disabled {
    opacity: 0.35;
    cursor: default;
}

.board-empty {
    padding: 70px 16px;
    text-align: center;
    color: #777777;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 30px;
}

.gallery-card__image {
    display: block;
    aspect-ratio: 400 / 275;
    background: #d9d9d9;
}

.gallery-card__title {
    margin-top: 18px;
    font-size: 16px;
    font-weight: 700;
}

.sub-review-list {
    margin-top: 30px;
    border-top: 3px solid #222222;
    background: #ffffff;
}

.sub-review {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 60px;
    padding: 50px;
    border-bottom: 1px solid #dddddd;
}

.sub-review__student {
    border-right: 1px solid #dddddd;
    padding-right: 25px;
}

.sub-review__student h3,
.sub-review__copy h3 {
    font-size: 18px;
    line-height: 1.5;
}

.sub-review__student p {
    margin-top: 10px;
    color: #888888;
    font-size: 12px;
    line-height: 1.8;
    white-space: pre-line;
}

.sub-review__copy > p:first-child {
    margin-bottom: 8px;
    font-size: 14px;
}

.sub-review__copy > p:last-child {
    margin-top: 20px;
    color: #888888;
    font-size: 14px;
    line-height: 1.8;
}

.post-heading {
    padding-bottom: 36px;
    border-bottom: 2px solid #344c44;
}

.post-heading h2 {
    font-size: 34px;
}

.post-heading__meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 24px;
    font-size: 14px;
    color: #888888;
}

.post-heading__meta .icon-svg {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
}

.post-body {
    min-height: 560px;
    padding: 50px;
    font-size: 18px;
    line-height: 1.8;
}

.post-attachments {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.post-attachments p {
    padding: 28px 34px;
    border-radius: 8px;
    background: #eeeeee;
    font-size: 16px;
    color: #666666;
}

.post-neighbours {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 30px;
    border: 1px solid #e2e2e2;
}

.post-neighbours a,
.post-neighbours > span {
    padding: 40px;
    font-size: 16px;
    overflow-wrap: anywhere;
}

.post-neighbours > :last-child {
    border-left: 1px solid #e2e2e2;
    text-align: right;
}

.post-neighbours [aria-disabled='true'] {
    color: #aaaaaa;
}

.post-back {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

.post-back .sub-button {
    width: 180px;
}

/* 상담 접수 결과와 입력 검증 메시지는 JavaScript에서 표시합니다. */
.inquiry-form {
    margin-top: 42px;
}

.inquiry-form fieldset {
    min-width: 0;
    padding: 0;
    margin: 0 0 70px;
    border: 0;
}

.inquiry-form legend {
    width: 100%;
    padding: 0 0 20px;
    margin-bottom: 40px;
    border-bottom: 2px solid #222222;
    font-size: 22px;
    font-weight: 700;
}

.inquiry-form legend small {
    margin-left: 20px;
    color: #999999;
    font-size: 12px;
    font-weight: 400;
}

.inquiry-fields,
.course-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.inquiry-field {
    display: grid;
    gap: 12px;
    min-width: 0;
    font-size: 16px;
}

.inquiry-field--wide {
    grid-column: 1 / -1;
}

.required {
    color: #e52d50;
}

.inquiry-field :is(input, textarea) {
    width: 100%;
    min-width: 0;
    min-height: 62px;
    padding: 18px 24px;
    border: 1px solid #dddddd;
    background: transparent;
    font-size: 16px;
    color: #222222;
}

.inquiry-field textarea {
    min-height: 216px;
    resize: vertical;
}

.inquiry-field input::placeholder,
.inquiry-field textarea::placeholder {
    color: #999999;
    font-size: 14px;
}

.inquiry-field :is(input, textarea):focus {
    outline: 1px solid #222222;
    outline-offset: -1px;
}

.inquiry-form__hint {
    margin-bottom: 20px;
    font-size: 16px;
}

.course-option {
    position: relative;
    cursor: pointer;
}

.course-option input {
    position: absolute;
    opacity: 0;
}

.course-option span {
    display: block;
    padding: 18px 24px;
    border: 1px solid #444444;
    font-size: 16px;
}

.course-option input:checked + span {
    background: #000000;
    color: #ffffff;
}

.course-option input:focus-visible + span {
    outline: 2px solid #817255;
    outline-offset: 4px;
}

.inquiry-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.7;
}

.inquiry-consent input {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin: 0;
    accent-color: #000000;
}

.inquiry-submit {
    margin-top: 80px;
    text-align: center;
}

.inquiry-submit .sub-button {
    width: 300px;
}

.inquiry-notice,
.inquiry-result {
    margin-top: 24px;
    color: #777777;
    font-size: 13px;
    line-height: 1.8;
    text-align: center;
}

.inquiry-result {
    color: #222222;
}

/* Keep the reference map as a fallback while Kakao Maps loads or is unavailable. */
.location-map {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1920 / 616;
    min-height: 300px;
    background: #eeeeee url('../images/sub/location-reference.png') center -53.3333vw / 100% auto no-repeat;
}

.location-map__canvas {
    position: absolute;
    inset: 0;
}

.location-map .root_daum_roughmap {
    width: 100% !important;
    height: 100%;
    max-width: 100%;
    border: 0;
}

.location-map .root_daum_roughmap .wrap_map {
    width: 100% !important;
    height: 100% !important;
}

/* Address/contact are shown in the page below; retain the map attribution. */
.location-map .root_daum_roughmap .cont {
    display: none;
}

.location-map__notice {
    position: absolute;
    top: 24px;
    right: 24px;
    max-width: calc(100% - 48px);
    margin: 0;
    padding: 14px 20px;
    background: #ffffff;
    box-shadow: 0 2px 12px #00000014;
    color: #404040;
    font-size: 14px;
    line-height: 1.6;
}

.location-map-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 16px;
    font-size: 14px;
}

.location-map-links a {
    text-underline-offset: 4px;
    text-decoration: underline;
}

.location-details {
    display: grid;
    grid-template-columns: 295px 1fr 1fr;
    align-items: center;
    gap: clamp(40px, 6.7708vw, 130px);
    padding-bottom: 120px;
}

.location-card {
    position: relative;
    z-index: 1;
    margin-top: -85px;
    min-height: 295px;
    padding: 42px;
    background: #000000;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
}

.location-card h2 {
    font-size: 22px;
    letter-spacing: -1px;
}

.location-details h3 {
    font-size: 22px;
    margin-bottom: 24px;
}

.location-details p {
    color: #999999;
    font-size: 16px;
    line-height: 2;
    overflow-wrap: anywhere;
}

.location-card p {
    color: #ffffff;
    font-weight: 700;
}

.address-copy {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    margin-top: 24px;
    border-radius: 30px;
    background: #f2f2f2;
    font-size: 14px;
}

.address-copy .icon-svg {
    width: 16px;
    height: 16px;
}

.sub-page .site-footer {
    background: #000000;
    color: #ffffff;
}

.sub-page .footer-top {
    grid-template-columns: 1.2fr 1fr;
}

.sub-page .footer-wordmark {
    font-family: Pretendard, Arial, sans-serif;
    font-weight: 900;
    letter-spacing: -0.033em;
}

body[data-page='location'] .sub-section {
    padding-bottom: 24px;
}

.sub-page .footer-sitemap a,
.sub-page .footer-info {
    color: #cccccc;
}

.sub-page .footer-sitemap > div > a:first-child,
.sub-page .footer-sitemap__counsel > a:first-child {
    color: #aaaaaa;
}

.no-js .inquiry-form {
    display: none;
}

@media (max-width: 1000px) {
    .sub-nav {
        gap: 8px;
    }

    .sub-nav a {
        padding-inline: 20px;
    }

    .training-grid > article {
        padding-inline: 20px;
    }

    .sub-review {
        grid-template-columns: 140px minmax(0, 1fr);
        gap: 30px;
        padding: 35px;
    }

    .location-details {
        grid-template-columns: 220px 1fr;
        gap: 35px;
    }

    .location-card {
        grid-row: span 2;
        min-height: 270px;
        padding: 30px;
    }
}

@media (max-width: 760px) {
    .sub-page .footer-top {
        grid-template-columns: 1fr;
    }

    .sub-page .footer-wordmark {
        font-size: 14vw;
    }

    body[data-page='location'] .sub-section {
        padding-bottom: 40px;
    }

    .sub-hero > .sub-container {
        min-height: 320px;
        padding-block: 28px 24px;
    }

    .sub-hero__meta, .sub-hero__bottom {
        font-size: 9px;
        gap: 10px;
    }

    .sub-hero__meta {
        padding-bottom: 16px;
    }

    .sub-hero__body {
        padding-block: 50px;
    }

    .sub-hero__eyebrow {
        font-size: 13px;
    }

    .sub-hero h1 {
        font-size: 38px;
        letter-spacing: -1.5px;
        overflow-wrap: anywhere;
    }

    .sub-hero__lead {
        margin-top: 24px;
        font-size: 25px;
    }

    .sub-hero__copy {
        margin-top: 24px;
        font-size: 14px;
        line-height: 1.8;
    }

    .sub-hero__copy br {
        display: none;
    }

    .sub-hero__body > .sub-button {
        margin-top: 28px;
    }

    .sub-hero--course .sub-hero__body {
        padding-block: 32px;
    }

    .sub-button {
        width: 220px;
        min-height: 52px;
        font-size: 14px;
        padding-inline: 24px;
    }

    .sub-nav {
        justify-content: flex-start;
        gap: 0;
        padding-inline: 12px;
    }

    .sub-nav a {
        min-height: 58px;
        padding-inline: 18px;
        font-size: 14px;
    }

    .sub-section {
        padding-block: 56px;
    }

    .sub-heading .eyebrow {
        font-size: 13px;
        letter-spacing: 2px;
        gap: 16px;
    }

    .sub-heading h2 {
        margin-top: 18px;
        font-size: 27px;
    }

    .sub-heading > p:last-child:not(.eyebrow) {
        font-size: 14px;
        line-height: 1.8;
    }

    .training-list > article {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 16px;
        padding: 26px 20px;
    }

    .training-list__number {
        font-size: 24px;
    }

    .training-list h3 {
        font-size: 18px;
    }

    .training-list p {
        font-size: 13px;
    }

    .training-list p br {
        display: none;
    }

    .training-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-top: 28px;
        row-gap: 28px;
    }

    .training-grid > article {
        padding: 0 18px 26px;
    }

    .training-grid > article:nth-child(2) {
        border-right: 0;
    }

    .training-grid h3 {
        font-size: 21px;
        overflow-wrap: anywhere;
    }

    .training-grid p {
        font-size: 12px;
    }

    .sub-cta {
        padding-block: 45px;
    }

    .sub-cta > .sub-container {
        align-items: flex-start;
        flex-direction: column;
        gap: 28px;
    }

    .sub-cta h2 {
        font-size: 24px;
    }

    .board-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
        font-size: 14px;
    }

    .board-search {
        display: grid;
        grid-template-columns: 80px minmax(0, 1fr) 58px;
        gap: 4px;
    }

    .board-search :is(input, select, button) {
        width: 100%;
        padding-inline: 8px;
        font-size: 13px;
    }

    .news-table {
        font-size: 13px;
    }

    .news-table .column-number {
        width: 42px;
    }

    .news-table .column-author {
        width: 64px;
    }

    .news-table .column-date {
        width: 76px;
    }

    .news-table :is(th, td) {
        padding: 18px 5px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 16px;
    }

    .gallery-card__title {
        font-size: 13px;
        margin-top: 12px;
    }

    .pagination {
        gap: 4px;
        margin-top: 32px;
    }

    .pagination button {
        min-width: 34px;
        min-height: 36px;
        font-size: 12px;
    }

    .sub-review {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 28px 24px;
    }

    .sub-review__student {
        border-right: 0;
        border-bottom: 1px solid #eeeeee;
        padding: 0 0 18px;
    }

    .sub-review__student h3, .sub-review__copy h3 {
        font-size: 17px;
    }

    .sub-review__copy > p:last-child {
        font-size: 13px;
    }

    .post-heading h2 {
        font-size: 27px;
    }

    .post-heading__meta {
        font-size: 12px;
        gap: 12px;
    }

    .post-body {
        min-height: 320px;
        padding: 30px 0;
        font-size: 16px;
    }

    .post-attachments p {
        padding: 20px;
        font-size: 13px;
    }

    .post-neighbours a, .post-neighbours > span {
        padding: 22px 16px;
        font-size: 13px;
    }

    .inquiry-form {
        margin-top: 32px;
    }

    .inquiry-form fieldset {
        margin-bottom: 36px;
    }

    .inquiry-form legend {
        margin-bottom: 24px;
        font-size: 19px;
        padding-bottom: 16px;
    }

    .inquiry-form legend small {
        display: block;
        margin: 10px 0 0;
        line-height: 1.6;
    }

    .inquiry-fields {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .inquiry-field {
        font-size: 14px;
        gap: 10px;
    }

    .inquiry-field :is(input, textarea) {
        padding: 14px 16px;
        min-height: 52px;
        font-size: 16px;
    }

    .inquiry-field textarea {
        min-height: 150px;
    }

    .inquiry-form__hint {
        font-size: 14px;
        line-height: 1.7;
    }

    .course-options {
        gap: 12px;
    }

    .course-option span {
        padding: 14px 12px;
        font-size: 14px;
    }

    .inquiry-consent {
        font-size: 12px;
        gap: 10px;
    }

    .inquiry-submit {
        margin-top: 40px;
    }

    .inquiry-submit .sub-button {
        width: 240px;
    }

    .inquiry-notice, .inquiry-result {
        font-size: 12px;
    }

    .location-map {
        height: 300px;
        aspect-ratio: auto;
        background-size: 960px auto;
        background-position: center -512px;
    }

    .location-details {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-bottom: 56px;
    }

    .location-card {
        margin-top: -30px;
        min-height: 190px;
        grid-row: auto;
        padding: 28px;
        gap: 30px;
    }

    .location-details h3 {
        font-size: 20px;
        margin-bottom: 14px;
    }

    .location-details p {
        font-size: 14px;
    }

    .address-copy {
        margin-top: 16px;
        min-height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sub-button {
        transition: none;
    }
}

/* Content registered through the administrator JSPs. */
.gallery-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 24px auto;
}

.post-body,
.post-body__text,
[data-review-body] {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.post-body__text + .post-youtube-figure,
.post-youtube-figure + .post-body__text,
.post-youtube-figure + .post-youtube-figure {
    margin-top: 28px;
}

.post-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    margin: 24px 0;
    background: #000000;
}

.post-youtube-figure {
    margin: 0;
}

.post-youtube-figure .post-youtube {
    margin: 0;
}

.post-attachment-figure {
    margin: 24px 0;
}

.post-attachments .post-attachment-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 28px 34px;
    border-radius: 8px;
    background: #eeeeee;
    font-size: 16px;
    color: #666666;
    transition: background-color 0.2s;
}

.post-attachments .post-attachment-link:hover,
.post-attachments .post-attachment-link:focus-visible {
    background: #e2e2e2;
}

.post-attachments .post-attachment-link small {
    color: #777777;
    font-size: 13px;
    white-space: nowrap;
}
