/* Awards & Certifications gallery + lightbox */

.dg-awards {
    padding: clamp(3rem, 6vw, 5rem) 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(167, 199, 83, 0.08) 0%, transparent 42%),
        radial-gradient(circle at 88% 78%, rgba(20, 79, 132, 0.06) 0%, transparent 40%),
        #fff;
}

.dg-awards .section-title {
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.dg-awards__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.dg-awards__item {
    margin: 0;
    padding: 0;
    border: 1px solid #e6ebf1;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
 }

.dg-awards__trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    color: inherit;
}

.dg-awards__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e8f0f8;
}

.dg-awards__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}


.dg-awards__zoom {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    color: #fff;
    font-size: 1.05rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.dg-awards__item:hover .dg-awards__zoom,
.dg-awards__trigger:focus-visible .dg-awards__zoom {
    opacity: 1;
    transform: translateY(0);
}

.dg-awards__caption {
    margin: 0;
    padding: 0.85rem 1rem;
    font-family: var(--dg-font-body);
    font-size: 0.9rem;
    line-height: 1.45;
    color: #2f3b48;
    border-top: 1px solid #e6ebf1;
    min-height: 3.6em;
}

/* Lightbox modal */
.dg-awards-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4.5rem 1.25rem 1.5rem;
}

.dg-awards-modal[hidden] {
    display: none;
}

.dg-awards-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.70);
    backdrop-filter: blur(5px);
}

.dg-awards-modal__close {
    position: fixed;
    top: 1.1rem;
    right: 1.1rem;
    z-index: 10001;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 0;
    background: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: none;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.dg-awards-modal__close:hover {
    opacity: 0.85;
    transform: scale(1.06);
}

.dg-awards-modal__close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.dg-awards-modal__nav {
    position: fixed;
    top: 50%;
    z-index: 10001;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    color: #fff;
    font-size: 1.65rem;
    cursor: pointer;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.dg-awards-modal__nav:hover {
    opacity: 0.85;
}

.dg-awards-modal__nav:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.dg-awards-modal__nav--prev {
    left: 0.75rem;
}

.dg-awards-modal__nav--next {
    right: 0.75rem;
}

.dg-awards-modal__nav--prev:hover {
    transform: translateY(-50%) translateX(-2px);
}

.dg-awards-modal__nav--next:hover {
    transform: translateY(-50%) translateX(2px);
}

.dg-awards-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: calc(100vh - 6rem);
    display: flex;
    flex-direction: column;
    border-radius: 0;
    overflow: visible;
    background: none;
    box-shadow: none;
}

.dg-awards-modal__figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
    background: none;
}

.dg-awards-modal__img-wrap {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    padding: 0;
}

.dg-awards-modal__img-wrap img {
    display: block;
    max-width: 100%;
    max-height: min(68vh, 720px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
}

.dg-awards-modal__alt {
    margin: 0;
    padding: 0.9rem 0.5rem 0;
    font-family: var(--dg-font-body);
    font-size: 1rem;
    line-height: 1.55;
    color: #fff;
    background: none;
    border-top: none;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.dg-awards-modal__counter {
    margin: 0.45rem 0 0;
    font-family: var(--dg-font-body);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
}

body.dg-awards-modal-open {
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .dg-awards__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .dg-awards__grid {
        grid-template-columns: 1fr;
    }

    .dg-awards-modal {
        padding: 4rem 0.75rem 0.75rem;
    }

    .dg-awards-modal__close {
        top: 0.75rem;
        right: 0.75rem;
    }

    .dg-awards-modal__nav--prev {
        left: 0.25rem;
    }

    .dg-awards-modal__nav--next {
        right: 0.25rem;
    }

    .dg-awards-modal__alt {
        font-size: 0.95rem;
        padding: 0.9rem 1rem 0;
    }
    /* .dg-awards__media img {
        aspect-ratio: 16 / 9;
    } */
}

