body {
    font-family: 'Montserrat', 'Poppins', 'Lato', sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 300;
    line-height: 1.6;
}

header {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
    max-width: 1200px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    position: relative;
}

.header-text {
    flex: 1;
    text-align: center;
}

.header-social {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: flex-start;
}

.instagram-link {
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
    padding: 5px;
}

.instagram-link:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.instagram-link svg {
    display: block;
    width: 30px;
    height: 30px;
}

.instagram-link svg path {
    fill: #333;
    transition: fill 0.2s ease;
}

.instagram-link:hover svg path {
    fill: #E4405F; /* Instagram brand color */
}

header h1 {
    font-weight: 300;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    margin-top: 0;
}

header p {
    color: #333;
    margin: 5px 0;
    font-size: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

header a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

header a:hover {
    color: #004999;
    text-decoration: none;
}

/* CSS Reset for Gallery */
* {
    box-sizing: border-box;
}

#gallery-container,
#gallery-container *,
.gallery-column,
.gallery-column *,
.image-wrapper,
.image-wrapper * {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    vertical-align: baseline;
}

/* Remove default image spacing */
img {
    vertical-align: top;
    border: 0;
}

/* Gallery container - FLEXBOX */
#gallery-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    padding: 0;
    margin: 0;
    max-width: 1800px;
    width: 100%;
    margin: 0 auto;
}

.gallery-column {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.image-wrapper {
    margin: 0;
    padding: 0;
    display: block;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    font-size: 0;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.2s;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    vertical-align: top;
}

.image-wrapper:hover {
    transform: none;
}

.image-wrapper img:hover {
    transform: scale(1.02);
}

/* Loading indicator */
.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
}

.loading-indicator.error {
    background-color: rgba(255, 0, 0, 0.7);
}

/* Error message */
.error-message {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 600px;
}

.error-message p {
    margin: 10px 0;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    header h1 {
        font-size: 2.2rem;
    }
    #gallery-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    header h1 {
        font-size: 2rem;
    }
    header p {
        font-size: 1rem;
    }
    
    .header-content {
        flex-direction: column;
        align-items: center;
    }
    
    .header-social {
        position: static;
        margin-top: 10px;
    }
    
    .instagram-link svg {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 900px) {
    #gallery-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 0;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    #gallery-container {
        grid-template-columns: 1fr;
        padding: 0;
        margin: 0 auto;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    width: 100%;
    max-width: 1200px;
}

/* Floating Contact Box */
.floating-contact {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 12px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.floating-contact.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-contact a {
    color: #333;
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    transition: color 0.3s ease;
}

.floating-contact a:hover {
    color: #0066cc;
}

.floating-contact:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Mobile adjustments for floating contact */
@media (max-width: 768px) {
    .floating-contact {
        top: 15px;
        right: 15px;
        padding: 10px 16px;
        border-radius: 20px;
    }
    
    .floating-contact a {
        font-size: 13px;
    }
}

footer p {
    color: #666;
    font-size: 0.9rem;
    font-weight: 300;
    margin: 0;
}

/* Lightbox Modal Styles */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.lightbox-image {
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    animation: zoomIn 0.3s ease;
}

/* Navigation Buttons */
.lightbox-close {
    position: absolute;
    top: -60px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    font-weight: 200;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10001;
    line-height: 1;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* Cursor styles */
.image-wrapper img {
    cursor: pointer;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { 
        opacity: 0;
        transform: scale(0.9);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .lightbox-image {
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
    }
    
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 30px;
        width: 50px;
        height: 50px;
    }
}
