@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Pacifico&display=swap');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: "Pacifico", cursive; */
}

body {
    color: #0c0c0c;
    background-color: gray;
    padding-top: 120px;
    font-family: "Kanit", sans-serif;
}

#mail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 98;
    transition: top 0.3s ease;
}

header {
    position: fixed;
    top: 20px;
    width: 100%;
    z-index: 99;
    transition: top 0.3s ease;
}

/* Mobile Menu Transitions */
#mobileMenu {
    transition: all 0.3s ease;
    max-height: calc(100vh - 84px);
    overflow-y: auto;
}

/* Profile Dropdown Transition */
#profileDropdown {
    transition: all 0.2s ease-in-out;
    transform-origin: top right;
}

/* Custom Scrollbar for Mobile Menu */
#mobileMenu::-webkit-scrollbar {
    width: 4px;
}

#mobileMenu::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#mobileMenu::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 2px;
}

#mobileMenu::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Header Shadow Animation */
.shadow-lg {
    transition: box-shadow 0.3s ease;
}

#logo {
    font-family: "Pacifico", cursive;
    font-size: 60px;
    height: 100%;
    /* border: 1px solid red; */
}

.container {
    max-width: 100%;
}


.container .checkin-box {
    height: 200px;
    width: 100%;
    margin-top: 15px;
    border: 1px solid red;
}

#card-1 {
    position: relative;
    overflow: hidden;
    /* ซ่อนส่วนเกิน */
    height: 400px;
    width: 100%;
}

#card-1 .cropped-image {
    position: absolute;
    top: -10%;

    width: 120%;
    height: 120%;
    object-fit: cover;
    /* ปรับขนาดภาพให้พอดีกับคอนเทนเนอร์ */
}




.backdrop {
    transition: opacity 0.5s ease;
}

.backdrop-hidden {
    opacity: 0;
    pointer-events: none;
    z-index: 100;
}

.backdrop-visible {
    opacity: 0.5;
    pointer-events: auto;
    z-index: 100;
}

.sidebar-hidden {
    transform: translateX(100%);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    box-shadow: none;
    z-index: 100;
}

.sidebar-visible {
    transform: translateX(0);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

#map {
    /* border: 1px solid red; */

}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item .overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
}

#registerForm {
    z-index: 111;
    padding-top: auto;

}