@font-face {
    font-family: webfont1;
    src: url('webfont1.ttf');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #171d1f; /* Sky blue */
    color: white;
}

/* Header */
header {
    padding: 1rem;
    text-align: center;
}

h1 {
    font-size: 3rem;
    font-family: webfont1;
}


.carousel {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}

.slides-container {
    width: 100%;
    overflow: hidden;
}

.slides {
    display: flex;
    width: 100%; /* Adjust based on number of slides (100% × number of slides) */
    transition: transform 0.5s ease-in-out; /* Smooth sliding animation */
}

.slides img {
    border-radius: 8px;
    width: 100%;
    height: auto;
    flex-shrink: 0;
}

button.prev, button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
}

button.prev {
    left: 10px;
}

button.next {
    right: 10px;
}


/* Gallery Grid */
.gallery {
    max-width: 1200px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    padding: 0 1rem;
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.gallery-item {
    width: 100%;
    height: 300px; /* Match the height of your placeholder images (400x300) */
    border-radius: 8px;
    overflow: hidden; /* Ensure the photosphere stays contained */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Ensure Pannellum’s viewer fits */
#photosphere .pnlm-container {
    width: 100%;
    height: 100%;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000; /* On top of everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Dark overlay */
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 80vh; /* Limit height to viewport */
    border-radius: 8px;
}
.modal-photosphere {
    display: none;
    max-width: 90%;
    max-height: 80vh;
    width: 100%;
    height: 100%;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #87CEEB; /* Sky blue hover effect */
    text-decoration: none;
}


/* Responsive Design */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}
