.gallery-container {
    padding: 20px;
    max-width: 95%;
    margin: 0 auto;
    color: var(--secondary-color);
}

.gallery-container {
    padding: 20px;
    max-width: 95%;
    margin: 0 auto;
}

.gallery-container h3 {
    color: var(--nature-blue);
} 

div.gallery-container > section {
    margin: 60px 0;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    backdrop-filter: blur(5px);
}

/* Common h2 styles for all sections */
div.gallery-container > section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--nature-blue);
    font-size: 2.2em;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

div.gallery-container > section h2::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    margin: 15px auto;
    border-radius: 2px;
    transition: width 0.8s ease-out;
    transition-delay: 0.3s;
}

div.gallery-container > section h2.fade-in-section::after {
    width: 80px;
}

div.gallery-container > section h2:hover {
    transform: translateY(-2px);
}

div.gallery-container > section h2:hover::after {
    width: 120px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    div.gallery-container > section h2 {
        font-size: 1.5em;
        padding: 10px 0;
    }
}

div.gallery-container > section:nth-of-type(3n+1) {
    background-color: var(--bg-color-1);
}

div.gallery-container > section:nth-of-type(3n+2) {
    background-color: var(--bg-color-2);
}

div.gallery-container > section:nth-of-type(3n) {
    background-color: var(--bg-color-3);
}

@media (max-width: 768px) {
    .gallery-container {
        max-width: 100%;
        padding: 10px;
    }
    div.gallery-container > section {
        padding: 20px;
        margin: 30px 0;
    }
}

/* SNS Section Styles in Gallery */
.highlight-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin: 40px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.highlight-box h3 {
    color: var(--nature-blue);
    font-size: 1.8em;
    margin-bottom: 20px;
}

.highlight-box p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #333;
}

.highlight-box .cta-button {
    font-size: 1.1em;
    margin-top: 20px;
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    background-size: 200% 200%;
    animation: gradientBG 3s ease infinite;
}

.highlight-box .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .highlight-box {
        padding: 30px 20px;
        margin: 30px 0;
    }

    .highlight-box h3 {
        font-size: 1.1em;
    }

    .highlight-box p {
        font-size: 1em;
    }

    .highlight-box .cta-button {
        padding: 12px 30px;
        font-size: 1em;
        width: 100%;
        box-sizing: border-box;
    }
}

/* Gallery Page Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 40px 0;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 15px;
        margin: 20px auto;
        max-width: 400px;
    }
}

.lightbox
 {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    padding: 40px;
    box-sizing: border-box;
}

.gallery-description {
    text-align: center;
}