/**
 * Galeri sayfası — albüm kartları ve detay grid
 */

.sy-gallery-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid rgba(17, 25, 78, 0.09);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 20px rgba(17, 25, 78, 0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.sy-gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 44px rgba(17, 25, 78, 0.1);
    color: inherit;
}

.sy-gallery-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eef1f7;
}

.sy-gallery-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.sy-gallery-card:hover .sy-gallery-card__media img {
    transform: scale(1.05);
}

.sy-gallery-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    background: linear-gradient(180deg, transparent 35%, rgba(17, 25, 78, 0.72) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.sy-gallery-card:hover .sy-gallery-card__overlay {
    opacity: 1;
}

.sy-gallery-card__overlay span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
}

.sy-gallery-card__body {
    padding: 1.15rem 1.25rem 1.3rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sy-gallery-card__title {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: #11194e;
    font-family: "Geologica", sans-serif;
}

.sy-gallery-card__desc {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: rgba(17, 25, 78, 0.62);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sy-gallery-card__meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(17, 25, 78, 0.48);
}

.sy-gallery-card__meta i {
    color: #fe000b;
}

/* Galeri detay */
.sy-gallery-show {
    background: #f0f2f8;
    padding-bottom: 4rem;
}

.sy-gallery-show__body {
    padding: 0 15px;
}

.sy-gallery-show__intro {
    margin-bottom: 1.75rem;
    padding: 1.25rem 1.5rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(17, 25, 78, 0.09);
    box-shadow: 0 8px 28px rgba(17, 25, 78, 0.05);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.sy-gallery-show__count {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(17, 25, 78, 0.55);
}

.sy-gallery-show__back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #11194e;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(17, 25, 78, 0.12);
    background: #f4f6fb;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.sy-gallery-show__back:hover {
    background: #fff;
    border-color: rgba(17, 25, 78, 0.2);
    color: #11194e;
}

.sy-gallery-grid {
    --bs-gutter-x: 1.25rem;
    --bs-gutter-y: 1.25rem;
}

.sy-gallery-photo {
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(17, 25, 78, 0.08);
    box-shadow: 0 4px 16px rgba(17, 25, 78, 0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.sy-gallery-photo:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(17, 25, 78, 0.1);
}

.sy-gallery-photo a {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.sy-gallery-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.sy-gallery-photo:hover img {
    transform: scale(1.04);
}

.sy-gallery-photo__zoom {
    position: absolute;
    right: 0.65rem;
    bottom: 0.65rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(17, 25, 78, 0.85);
    color: #fff;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sy-gallery-photo:hover .sy-gallery-photo__zoom {
    opacity: 1;
}
