.gallery-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2.5rem;
    width: 100%;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-item {
    position: relative;
    background-color: var(--color-beige);
    border-radius: 0;
    overflow: hidden;
    border: 1px solid var(--color-blue);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    transform: translateY(-15px);
    border-color: var(--color-blue);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.gallery-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

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

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

.gallery-info {
    background-color: var(--color-beige);
    color: var(--color-blue);
    border-top: 1px solid var(--color-blue);
    padding: 2.5rem 2rem;
    text-align: left;
    min-height: 250px;
    display: flex;
    flex-direction: column;
}

.gallery-info .btn-dynamic {
    background: transparent;
    border: 1px solid var(--color-blue);
    border-radius: 0;
    color: var(--color-blue) !important;
}

.gallery-info .btn-dynamic:hover {
    background: var(--color-blue);
    color: var(--color-beige) !important;
}

.gallery-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

.gallery-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    opacity: 0.85;
    margin-bottom: auto;
}
