.amg-gallery-shell {
    --amg-primary: #2f4640;
    --amg-accent: #9c7b4f;
    --amg-surface: rgba(255,255,255,0.88);
    --amg-border: rgba(47,70,64,0.10);
    --amg-text: #172028;
    max-width: 1240px;
    margin: 0 auto;
    padding: clamp(20px, 3vw, 34px);
    color: var(--amg-text);
}

.amg-gallery-header {
    text-align: center;
    margin-bottom: 32px;
}

.amg-breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    font-size: 14px;
}

.amg-breadcrumbs a,
.amg-back-link {
    color: var(--amg-primary);
    text-decoration: none;
}

.amg-gallery-header h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
    margin: 0;
    color: #111827;
}

.amg-gallery-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    max-width: 900px;
    margin: 14px auto 0;
    color: #425466;
}

.amg-back-link {
    display: inline-flex;
    margin-top: 18px;
    font-weight: 600;
}

.amg-album-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.amg-album-card {
    position: relative;
    display: block;
    min-height: 300px;
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc, #e5eef0);
    border: 1px solid var(--amg-border);
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.14);
    text-decoration: none;
    transform: translateY(0);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.amg-album-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.20);
}

.amg-card-cover,
.amg-card-overlay {
    position: absolute;
    inset: 0;
}

.amg-card-cover {
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.amg-card-overlay {
    background: linear-gradient(180deg, rgba(11,18,25,0.12) 0%, rgba(11,18,25,0.72) 90%);
}

.amg-card-content {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    display: grid;
    gap: 8px;
    padding: 22px;
    color: #fff;
}

.amg-card-kicker {
    display: inline-flex;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    backdrop-filter: blur(8px);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.amg-card-content strong {
    font-size: 1.35rem;
    line-height: 1.2;
}

.amg-card-content em,
.amg-card-content small,
.amg-card-meta {
    font-style: normal;
    opacity: .92;
}

.amg-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.amg-photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 1;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 24px rgba(15,23,42,0.08);
}

.amg-photo-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.amg-empty-state {
    text-align: center;
    padding: 44px 20px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--amg-border);
}

.amg-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 15, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 24px;
}

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

.amg-lightbox figure {
    margin: 0;
    max-width: min(1100px, 100%);
    max-height: 100%;
    display: grid;
    gap: 12px;
}

.amg-lightbox img {
    max-width: 100%;
    max-height: 78vh;
    border-radius: 18px;
    object-fit: contain;
    background: #0b1220;
}

.amg-lightbox figcaption {
    color: #fff;
    text-align: center;
}

.amg-lightbox-close,
.amg-lightbox-nav {
    position: absolute;
    border: 0;
    border-radius: 999px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 28px;
    backdrop-filter: blur(10px);
}

.amg-lightbox-close { top: 20px; right: 20px; }
.amg-lightbox-prev { left: 20px; }
.amg-lightbox-next { right: 20px; }

@media (max-width: 1024px) {
    .amg-album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .amg-photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .amg-gallery-shell { padding: 16px; }
    .amg-album-grid,
    .amg-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .amg-album-card { min-height: 240px; border-radius: 20px; }
    .amg-card-content { padding: 16px; }
    .amg-lightbox-nav { display: none; }
}

@media (max-width: 520px) {
    .amg-album-grid,
    .amg-photo-grid { grid-template-columns: 1fr; }
}
