.gallery-pink {
    color: #ec4899;
}

.gallery-purple {
    color: #a855f7;
}

.gallery-blue {
    color: #3b82f6;
}

.gallery {
    width: 100%;
    padding: 20px 40px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f8f0ff, #ffe6f0);
    text-align: center;
}

.gallery-container {
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 0;
}

.gallery-content {

    h1 {
        font-size: 2.5rem;
        font-weight: 700;
        background: linear-gradient(90deg, #6b46c1, #d53f8c);
        background-clip: border-box;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: 20px;
    }

    p {
        font-size: 1.1rem;
        color: #555;
        max-width: 700px;
        margin: 0 auto 50px;
        line-height: 1.6;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    aspect-ratio: 4 / 3;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
    transition: opacity 0.4s ease;
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    span {
        background: rgba(255, 255, 255, 0.3);
        padding: 6px 12px;
        border-radius: 12px;
        font-size: 0.8rem;
        display: inline-block;
        margin-bottom: 8px;
        text-align: left;
    }

    h2 {
        font-size: 1.3rem;
        font-weight: 600;
        margin: 0 0 6px;
    }

    p {
        font-size: 0.9rem;
        opacity: 0.9;
        margin: 0;
        color: white;
    }
}

.gallery-card:hover .overlay {
    opacity: 1;
}   

.gallery-card:hover {
    transform: scale(1.1);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 70px;
    text-align: center;
}

.info h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.info p {
  color: #666;
  font-size: 0.95rem;
}

.info .icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

body.gallery-modal-open {
    overflow: hidden;
}

.gallery-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-overlay-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-overlay-content img {
    max-width: clamp(320px, 30vw, 420px);
    border-radius: 16px;
}

.gallery-close,
.gallery-prev,
.gallery-next {
    position: absolute;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.gallery-close {
    top: -40px;
    right: 0;
}

.gallery-prev {
    left: -60px;
}

.gallery-next {
    right: -60px;
}

@media (max-width: 480px) {
    .gallery-card {
        aspect-ratio: 1 / 1;
    }
}