/* Font family only: preserve the site's existing sizes, colors and weights. */
h1, h2, h3, h4, h5, h6,
.hero h1, .hero h1 em,
.footer-word, .footer-word em,
.section-no {
    font-family: 'Bitter', Georgia, serif !important;
}

.demo-note { display: none !important; }

.gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px 18px;
    align-items: start;
}
.gallery .gallery-grid .gallery-button {
    display: block;
    width: 100%;
    min-width: 0;
    grid-column: auto;
}
.gallery .gallery-grid .gallery-button img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    filter: grayscale(1);
    opacity: 1;
    transition: filter .25s ease;
}
.gallery .gallery-grid .gallery-button:focus-visible img {
    filter: grayscale(0);
}
@media (hover: hover) {
    .gallery .gallery-grid .gallery-button:hover img { filter: grayscale(0); }
}
.gallery .gallery-caption {
    font-size: 11px;
    min-height: 44px;
    gap: 10px;
    align-items: start;
}
.gallery .gallery-caption > span:first-child { overflow-wrap: anywhere; }

.dramoklam-gallery-dialog {
    width: min(1200px, 94vw);
    max-width: 94vw;
    max-height: 94vh;
    padding: 0;
    border: 0;
    background: #fff;
    color: #222;
}
.dramoklam-gallery-dialog::backdrop { background: rgba(0,0,0,.88); }
.dramoklam-gallery-dialog > img {
    display: block;
    width: 100%;
    height: min(76vh, 900px);
    object-fit: contain;
    filter: none;
    background: #f3f3f3;
}
.dramoklam-gallery-dialog .dg-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
}
.dramoklam-gallery-dialog .dg-caption { font: 13px/1.5 Arial, sans-serif; }
.dramoklam-gallery-dialog .dg-buttons { display: flex; gap: 8px; flex-shrink: 0; }
.dramoklam-gallery-dialog button {
    border: 1px solid #bbb;
    background: white;
    padding: 8px 13px;
    font: 13px Arial, sans-serif;
    cursor: pointer;
}
@media (max-width: 1100px) {
    .gallery .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
    .gallery .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .gallery .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
    .dramoklam-gallery-dialog .dg-toolbar { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    .gallery .gallery-grid .gallery-button img { transition: none; }
}

/* Fixed link in the first about paragraph, retaining the existing typography. */
.body-copy p:first-child .dramoklam-dialog-link {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: .16em;
}

/* Preserve explicit Enter in the introductory heading. */
.hero-copy h2 {
    white-space: pre-line !important;
    text-wrap: wrap !important;
    max-width: none !important;
}
