* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Loading screen styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.loading-screen.visible {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 20px;
    font-size: 18px;
    color: #333;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
body {
    font-family: 'Maitree', serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

header {
    background-color: #000;
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-left h1 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 500;
}

.nav-right a {
    color: #fff;
    text-decoration: none;
    margin-left: 2rem;
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

.nav-right a:hover {
    opacity: 0.8;
}

main {
    margin-top: 4rem;
    padding: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.galleries-section {
    padding: 2rem 0;
}

.galleries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
}

.gallery-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.gallery-card .gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
}

.gallery-card .gallery-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.gallery-card .gallery-info p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.gallery-header {
    text-align: center;
    margin-bottom: 2rem;
}

.gallery-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #000;
}

.gallery-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.gallery-section {
    opacity: 0;
    transition: opacity 0.3s ease;
    display: none;
    width: 100%;
}

.gallery-section.visible {
    opacity: 1;
    display: block;
}

.masonry-grid {
    columns: 3 300px;
    column-gap: 1rem;
    padding: 1rem 0;
    width: 100%;
    margin: 0;
}

.gallery-item {
    position: relative;
    margin-bottom: 20px;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    break-inside: avoid;
    display: block;
}

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

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.gallery-item-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 14px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

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

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1001;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 2rem auto;
    padding: 2rem;
    width: 90%;
    max-width: 800px;
    border-radius: 4px;
}

.modal-image-container {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}

.modal-content img {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.image-actions {
    margin-top: 1.5rem;
    text-align: center;
}

#cartItems {
    margin: 1rem 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
}

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-info {
    flex: 1;
    margin: 0 1rem;
}

.cart-item-title {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: #666;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 1rem;
}

.remove-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: #999;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
    transition: color 0.3s ease;
}

.remove-btn:hover {
    color: #ff4444;
}

#cartTotal {
    text-align: right;
    font-size: 1.25rem;
    margin: 1rem 0;
}

.cart-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.option {
    text-align: center;
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: 4px;
}

.option h3 {
    margin-bottom: 0.5rem;
}

.option p {
    color: #666;
    margin-bottom: 1rem;
}

.primary-button {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.primary-button:hover {
    background-color: #333;
}

@media (max-width: 768px) {
    .masonry-grid {
        columns: 2 250px;
    }

    .cart-options {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 1rem auto;
    }
}

@media (max-width: 480px) {
    .masonry-grid {
        columns: 1;
    }

    .nav-right a {
        margin-left: 1rem;
    }
}

.back-button {
    background: none;
    border: none;
    color: #333;
    font-size: 1rem;
    padding: 10px 20px;
    margin-bottom: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.back-button:hover {
    color: #666;
}

.gallery-header {
    margin-bottom: 2rem;
}

.gallery-header h2 {
    margin-bottom: 0.5rem;
}

.gallery-header p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

.gallery-item.image-error {
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    position: relative;
}

.image-error-text {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
}

.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Maitree', serif;
    pointer-events: none;
    user-select: none;
}

.watermark-text {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.watermark-instagram {
    font-size: 1.2rem;
    margin: 0.3rem 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
} 
.watermark-instagram-small {
    font-size: 0.6rem;
    margin: 0.3rem 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
} 
.cart-item input {
    padding: 0.5rem;
    font-size: 1rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin-right: 1rem;
}

.cart-item button {
    padding: 0.5rem 1rem;
    background-color: #000;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cart-item button:hover {
    background-color: #333;
}
