/* =========================
PAGE DECOR
========================= */
.gallery-page-decor {
    position: relative;
    min-height: 100vh;
}

/* LEVÁ */
.gallery-page-decor::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50px;
    width: 220px;
    height: 100%;
    background: url("/themes/pohadka/images/decor-left.png") repeat-y left top;
    background-size: contain;
    opacity: .7;
    pointer-events: none;
    z-index: 0;
}

/* PRAVÁ */
.gallery-page-decor::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50px;
    width: 220px;
    height: 100%;
    background: url("/themes/pohadka/images/decor-right.png") repeat-y right top;
    background-size: contain;
    opacity: .7;
    pointer-events: none;
    z-index: 0;
}

/* zesvětlení */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 245, 235, .55);
    z-index: 1;
}

/* obsah */
.gallery-page-decor .container {
    position: relative;
    z-index: 2;
}

/* =========================
GRID
========================= */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

/* =========================
ITEM
========================= */
.album-item {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: .25s;
}

.album-item:hover {
    transform: translateY(-6px);
}

/* =========================
IMAGE
========================= */
.album-cover {
    position: relative;
    height: 240px;
    border-radius: 20px;
    overflow: hidden;
    background: #f3f4f6;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

/* image */
.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s;
}

/* hover zoom */
.album-item:hover img {
    transform: scale(1.06);
}

/* overlay gradient */
.album-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, .35),
            transparent);
    opacity: .8;
}

/* =========================
BADGE
========================= */
.album-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, .65);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* =========================
TEXT
========================= */
.album-text {
    margin-top: 12px;
    text-align: center;
}

.album-text h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-success);
    margin-bottom: 5px;
}

.album-text p {
    font-size: 14px;
    color: #6c6c7a;
}

/* =========================
BUTTON
========================= */
.btn-gallery-pink {
    background: #f48da3;
    color: white !important;
    border-radius: 40px;
    padding: 12px 26px;
    font-weight: 700;
    text-decoration: none;
    transition: .2s;
}

/* ======================
GALLERY SHOW
=======================*/
.btn-gallery-pink:hover {
    background: #ef6986;
}

.photo-grid {
    column-count: 4;
    column-gap: 18px;
}

.photo-item {
    break-inside: avoid;
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
    transition: .3s;
}

.photo-item img {
    width: 100%;
    display: block;
    transition: .4s;
}

/* hover zoom */
.photo-item:hover img {
    transform: scale(1.07);
}

.photo-item::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: rgba(0, 0, 0, .35);
    opacity: 0;
    transition: .3s;
}

.photo-item:hover::after {
    opacity: 1;
}

/* ikona */
.photo-item::before {
    content: "👁";
    position: absolute;
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(.8);
    font-size: 26px;
    color: white;
    opacity: 0;
    transition: .3s;
}

.photo-item:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.photo-download {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, .9);
    padding: 6px 10px;
    border-radius: 50%;
    font-size: 14px;
    text-decoration: none;
    color: #333;
    transition: .2s;
}

.photo-download:hover {
    background: #63b6b3;
    color: white;
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    inset: 0;

    display: none;
    z-index: 9999;
}

.lightbox.active {
    display: block;
}

/* overlay */
.lightbox-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, .85);
    backdrop-filter: blur(4px);

    opacity: 0;
    transition: .3s;
}

.lightbox.active .lightbox-overlay {
    opacity: 1;
}

/* content */
.lightbox-content {
    position: relative;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* image */
.lb-image {
    max-width: 90%;
    max-height: 85%;

    border-radius: 12px;

    opacity: 0;
    transform: scale(.95);
    transition: .3s;
}

.lightbox.active .lb-image {
    opacity: 1;
    transform: scale(1);
}

/* controls */
.lb-close,
.lb-prev,
.lb-next,
.lb-fullscreen {
    position: absolute;

    background: rgba(255, 255, 255, .15);
    border: none;
    color: white;

    font-size: 1.4rem;

    padding: 10px 14px;
    border-radius: 8px;

    cursor: pointer;
}

/* pozice */
.lb-close {
    top: 20px;
    right: 20px;
}

.lb-prev {
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.lb-next {
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.lb-fullscreen {
    bottom: 20px;
    right: 20px;
}

.gallery-section{
    padding:120px 0;
    position:relative;
}

.gallery-section .container{
    position:relative;
    z-index:2;
}

.gallery-home-grid{
    display:grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 200px 200px;
    gap:20px;
}

/* velký obrázek */
.gallery-home-item.big{
    grid-row: span 2;
}

/* item */
.gallery-home-item{
    position:relative;
    overflow:hidden;
    border-radius:24px;

    box-shadow:0 15px 35px rgba(0,0,0,.08);
}

/* obrázek */
.gallery-home-item img{
    width:100%;
    height:100%;
    object-fit:cover;

    transition:.4s;
}

/* hover */
.gallery-home-item:hover img{
    transform:scale(1.05);
}

/* overlay */
.gallery-home-item::after{
    content:"";
    position:absolute;
    inset:0;

    background:linear-gradient(
        to top,
        rgba(0,0,0,.3),
        transparent
    );

    opacity:.7;
}