/* New denture sections. Existing sections retain the saved blocks and style.css. */
.denture-page {
    --denture-ink: #2f2926;
    --denture-body: #4a413d;
    --denture-yellow: #f6b817;
}

.denture-section {
    font-family: inherit;
    color: var(--denture-body);
}

#content .denture-section :is(h2, h3, h4, p, figure, ol) {
    margin: 0;
    padding: 0;
    letter-spacing: 0;
}

#content .denture-section :is(h2, h3, h4) {
    color: var(--denture-ink);
    font-weight: 700;
    border: 0;
    background: none;
}

#content .denture-section p {
    font-size: 17px;
    line-height: 34px;
    font-weight: 400;
    color: var(--denture-body);
}

.denture-section {
    padding: 118px 24px;
    background: #fff;
    scroll-margin-top: 24px;
}

.denture-inner {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

.denture-stack {
    display: flex;
    flex-direction: column;
    gap: 72px;
}

#content .denture-section .denture-heading {
    font-size: 26px;
    line-height: 42px;
    text-align: center;
}

.denture-heading::after {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    margin: 18px auto 0;
    background: var(--denture-yellow);
}

#content .denture-section h3 {
    font-size: 26px;
    line-height: 42px;
}

.denture-section img,
.denture-section video {
    display: block;
    max-width: 100%;
}

.denture-section img[src$=".webp"] {
    width: 100%;
    height: auto;
}

.denture-navigation.gr-tg-about-01 ul {
    max-width: 1200px;
}

.denture-process-gallery {
    max-width: 1100px;
    width: 100%;
    margin: 40px auto;
}

/* Give the existing usage chart enough room to read. */
.denture-02 .de02 > .wp-block-column:first-child {
    flex: 0 0 300px;
}

.denture-02 .de02 .wp-block-image img {
    display: block;
    width: 300px;
    max-width: 100%;
    height: auto;
}

@media (max-width: 781px) {
    .denture-02 .de02 > .wp-block-column:first-child {
        flex-basis: 100% !important;
    }

    .denture-02 .de02 .wp-block-image img {
        margin: 0 auto;
    }
}

.denture-types .denture-stack {
    gap: 56px;
}

#content .denture-section .denture-types-intro {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.denture-type-group {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.denture-subheading {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#content .denture-section .denture-subheading p {
    color: #5a504a;
    font-size: 16px;
    line-height: 30px;
}

.denture-type-group .denture-subheading {
    gap: 6px;
}

#content .denture-types .denture-subheading p {
    font-size: 15px;
    line-height: 28px;
}

.denture-grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.denture-type-card {
    display: flex;
    gap: 24px;
    align-items: center;
    min-height: 260px;
    padding: 19px;
    border: 1px solid #d7d0c9;
    border-radius: 2px;
    background: #fff;
}

.denture-type-image {
    width: 196px;
    flex: 0 0 196px;
}

.denture-type-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#content .denture-section .denture-type-copy h4 {
    font-size: 22px;
    line-height: 36px;
}

.denture-type-copy h4 span {
    white-space: nowrap;
}

#content .denture-section .denture-type-copy p,
#content .denture-section .denture-case-summary p {
    font-size: 15px;
    line-height: 28px;
}

#content .denture-section .denture-label,
#content .denture-section .denture-case-summary .denture-label {
    color: #b06e0d;
    font-size: 15px;
    line-height: 24px;
    font-weight: 700;
}

.denture-cases {
    padding-bottom: 120px;
    background: #fff8e7;
}

.denture-case-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 26px 32px;
    border: 1px solid var(--denture-yellow);
    border-radius: 2px;
    background: #fff;
}

#content .denture-section .denture-case-summary h3 {
    font-size: 22px;
    line-height: 36px;
}

.denture-fit-videos {
    gap: 24px;
}

.denture-media-card {
    min-width: 0;
}

.denture-media-card figcaption {
    margin-top: 12px;
    color: #342c28;
    font-size: 15px;
    line-height: 26px;
    font-weight: 700;
    text-align: center;
}

.denture-player {
    position: relative;
    background: #000;
}

.denture-player video {
    width: 100%;
    height: auto;
    aspect-ratio: 1088 / 600;
    object-fit: contain;
}

.denture-fit-videos video {
    aspect-ratio: 1096 / 823;
}

.denture-play {
    position: absolute;
    inset: 0;
    display: block;
    font-family: inherit;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: #000;
    color: #fff;
    cursor: pointer;
}

.denture-play-symbol {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 64px;
    height: 64px;
    transform: translate(-50%, -50%);
}

.denture-play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
}

.denture-play:hover .denture-play-symbol {
    opacity: .85;
}

.denture-duration {
    position: absolute;
    right: 14px;
    bottom: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    text-shadow: 0 1px 3px #000;
}

.denture-play:focus-visible {
    outline: 3px solid #663f25;
    outline-offset: 4px;
}

.denture-player [hidden] {
    display: none;
}

#content .denture-section .denture-video-error {
    position: relative;
    z-index: 1;
    padding: 12px;
    background: #fff;
    font-size: 14px;
    line-height: 24px;
}

#content .denture-section .denture-case-note {
    padding: 22px 26px;
    border: 1px solid #e4d8c8;
    background: #fff;
    color: #665b55;
    font-size: 14px;
    line-height: 26px;
}

.denture-gallery img {
    display: block;
    width: 100%;
    height: auto;
}

.denture-gallery figure {
    margin: 0;
}

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

.denture-gallery figcaption {
    margin-top: 10px;
    color: var(--denture-body);
    font-size: 14px;
    line-height: 24px;
    font-weight: 500;
}

@media (max-width: 1199px) {
    .denture-type-card { gap: 18px; }
    .denture-type-image { flex-basis: 36%; width: 36%; }
}

@media (max-width: 900px) {
    .denture-section { padding: 72px 24px; }
    .denture-stack { gap: 48px; }
    .denture-types .denture-stack { gap: 40px; }
    .denture-type-grid { grid-template-columns: 1fr; }
    .denture-type-image { flex-basis: 196px; width: 196px; }
    .denture-type-card { gap: 24px; min-height: 260px; }
}

@media (max-width: 600px) {
    .denture-section { padding: 56px 20px; }
    .denture-stack { gap: 36px; }
    #content .denture-section .denture-heading { font-size: 23px; line-height: 36px; }
    #content .denture-section h3 { font-size: 22px; line-height: 36px; }
    #content .denture-section p { font-size: 16px; line-height: 30px; }
    #content .denture-section .denture-types-intro { text-align: left; font-size: 16px; line-height: 30px; }
    .denture-grid-two { grid-template-columns: 1fr; gap: 28px; }
    .denture-type-card { gap: 16px; min-height: 0; padding: 16px; align-items: flex-start; }
    .denture-type-image { width: 30%; flex-basis: 30%; }
    #content .denture-section .denture-type-copy h4 { font-size: 19px; line-height: 30px; }
    #content .denture-section .denture-type-copy p { font-size: 14px; line-height: 26px; }
    .denture-case-summary { padding: 22px 20px; }
    .denture-case-summary br { display: none; }
    #content .denture-section .denture-case-note { padding: 18px 20px; }
    .denture-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
    .denture-media-card figcaption { font-size: 14px; }
}
