/* Explain: Styles for certificate cards, gallery items, and the image lightbox. */
/* ==============================
   Sertifikalar, Galeri ve Lightbox
   ============================== */

.cert-card {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 1rem;
    border-radius: 1.8rem;
    padding: 0.9rem;
    text-align: left;
    transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

.cert-card:hover {
    transform: translateY(-6px);
    border-color: rgba(88, 129, 87, 0.58);
    box-shadow: 0 26px 80px rgba(31, 46, 35, 0.11);
}

.cert-frame {
    display: flex;
    aspect-ratio: 5 / 7;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 1.3rem;
    background: #ffffff;
}

.cert-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cert-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0 0.4rem 0.4rem;
}

.cert-code {
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
}

.cert-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.gallery-item {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 1.8rem;
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 500ms ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 2.4rem 1.2rem 1.1rem;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: left;
    background: linear-gradient(180deg, rgba(31, 46, 35, 0) 0%, rgba(31, 46, 35, 0.78) 100%);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(31, 46, 35, 0.82);
    backdrop-filter: blur(6px);
}

.lightbox.is-open {
    display: flex;
}

.lightbox-figure {
    display: flex;
    max-width: min(100%, 56rem);
    max-height: 90vh;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    margin: 0;
}

.lightbox-figure img {
    width: auto;
    max-width: 100%;
    max-height: 76vh;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
}

.lightbox-caption {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}