.gallery-item {
    width: 100%;
    aspect-ratio: 1 / 1; /* 정사각형 비율 유지 (지원 안 될 시 fallback 필요) */
    overflow: hidden;
    cursor: zoom-in;
    position: relative;
}

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

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

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.fade-in {
    opacity: 0;
    animation: fadeIn 2s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}


@media (max-width: 576px) {
    .hero-content img {
        width: 70px !important;
    }

    .hero-content p {
        font-size: 0.8rem !important;
    }

    .hero-content .btn {
        width: 110px !important;
        font-size: 0.8rem !important;
        padding-top: 0.3rem !important;
        padding-bottom: 0.3rem !important;
    }

    .hero-content2 {
        font-size: 0.7rem !important;
    }

    /*.hero-content2 br {*/
    /*    display: none;*/
    /*}*/

    .hero-content2-title {
        font-size: 0.8rem !important;
        font-weight: 600;
    }

    .hero-icons img {
        width: 22px !important;
    }

    #map {
        height: 150px !important;
    }
}

