/* Header */
section.header-for-gallery {
    display: flex;
    margin: 0;
    padding: 0;
    background: rgba(242, 214, 225, 1);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

section.header-for-gallery .main-block-for-gallery {
    display: flex;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 215px;
    margin-bottom: 150px;
    flex-direction: column;
    text-align: center;
}

section.header-for-gallery .main-block-for-gallery h1 {
    font-size: 40px;
    line-height: 54px;
    font-weight: 700;
    color: rgba(19, 24, 33, 1);
    margin: 0 0 12px;
}

/* Gallery */
section.gallery-section {
    display: flex;
    margin: 0;
    padding: 0;
    flex-direction: column;
}

section.gallery-section .main-block {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

section.gallery-section .main-block .gallery-main-block {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 64px 0;
}

section.gallery-section .main-block .gallery-main-block .gallery-item {
    flex: 1 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 9 / 16;
}

section.gallery-section .main-block .gallery-main-block .gallery-item iframe,
section.gallery-section .main-block .gallery-main-block .gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    border-radius: 10px;
}

section.gallery-section .main-block .gallery-main-block .gallery-item blockquote.instagram-media {
    width: 100% !important;
    height: 100%;
    aspect-ratio: 9 / 16;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 !important;
}

section.gallery-section .main-block .gallery-main-block .tiktok-lazy {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

section.gallery-section .main-block .gallery-main-block .tiktok-lazy img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

section.gallery-section .main-block .gallery-main-block .tiktok-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
}

section.gallery-section .main-block .gallery-main-block .tiktok-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 40px;
    width: 70px;
    height: 70px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

section.gallery-section .main-block .gallery-main-block .tiktok-play-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%) scale(1.1);
}

section.gallery-section .main-block .gallery-buttons {
    max-width: 400px;
    margin: 0 auto;
}

section.gallery-section .main-block .gallery-buttons button {
    background: rgba(255, 211, 1, 1);
    border: 0px;
    border-radius: 90px;
    padding: 14px;
    width: 100%;
    margin: 16px auto;
    font-size: 16px;
    line-height: 21px;
    color: rgba(31, 29, 2, 1);
    font-weight: 600;
    cursor: pointer;
}

section.gallery-section .main-block .gallery-buttons button:hover {
    background: #e0a800;
}

section.gallery-section .main-block .tiktok-lazy {
    position: relative;
    max-width: 400px;
    margin: auto;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

section.gallery-section .main-block .tiktok-lazy img {
    width: 100%;
    display: block;
    object-fit: cover;
}

section.gallery-section .main-block .tiktok-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 36px;
    width: 70px;
    height: 70px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

section.gallery-section .main-block .tiktok-play-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

@media (max-width: 768px) {

    /* Header */
    section.header-for-gallery .main-block-for-gallery h1 {
        font-size: 28px;
        line-height: 38px;
    }

    /* Gallery */
    section.gallery-section .main-block .gallery-main-block {
        padding: 0 20px;
    }

    section.gallery-section .main-block .gallery-main-block .gallery-item {
        padding: 0;
        flex: 1 1 100%;
        max-width: 100%;
        aspect-ratio: 9 / 16;
    }


    section.gallery-section .main-block .gallery-buttons {
        max-width: 250px;
        margin: 0 auto;
    }
}