/* ======= General Styling ======= */
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

/* ======= Grid Layouts for Products, Events, and Photos ======= */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
    padding: 10px;
}

/* ======= Cards for Items (Products, Events, Photos) ======= */
.card, .event-card, .product-card, .gallery-card ,.artwork-card{
    border: 1px solid #ddd;
    padding: 5px;
    text-align: center;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}
.card, .event-card, .product-card, .gallery-card:hover {
    transform: scale(1.03);
}
.card img, .event-card img, .product-card img, .gallery-card img{
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

/* ======= Delete Button ======= */
.delete-btn {
    background: red;
    color: white;
    border: none;
    padding: 7px 12px;
    cursor: pointer;
    margin-top: 10px;
    border-radius: 5px;
    transition: background 0.3s;
}
.delete-btn:hover {
    background: darkred;
}

/* ======= Toggle Form Button ======= */
.toggle-form-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 10px;
}
.toggle-form-btn:hover {
    background: #005177;
}

/* ======= Upload Forms ======= */
.upload-form {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.upload-form input, .upload-form textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}
.upload-form button {
    background: green;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
}
.upload-form button:hover {
    background: darkgreen;
}

/* ======= Success Messages ======= */
.success-message {
    text-align: center;
    font-size: 14px;
    color: #28a745;
    margin-top: 10px;
}

/* ======= User Panel Navigation ======= */
.custom-user-panel nav {
    text-align: center;
    margin-bottom: 20px;
}
.custom-user-panel nav a {
    padding: 10px 15px;
    font-size: 16px;
    color: #0073aa;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}
.custom-user-panel nav a:hover {
    color: #fff;
    background: #0073aa;
}

/* ======= Gallery Section ======= */
.gallery-grid ,.event-grid, .product-grid, .artwork-grid  {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    padding: 20px;
    margin-top: 20px;
}
.gallery-item, .event-item ,.product-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}
.gallery-item , .event-item ,.product-item:hover {
    transform: scale(1.05);
}
.gallery-item, .event-item ,.product-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ======= Lightbox/Slideshow ======= */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}
.lightbox img {
    max-width: 90%;
    max-height: 80%;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}





#edit-artwork-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
    width: 90%;
    max-width: 600px;
}

.form-group {
    margin-bottom: 15px;
}
/* ======= Responsive Styles ======= */
@media screen and (max-width: 768px) {
    .grid-layout, .gallery-grid,.event-grid, .product-grid, .artwork-grid  {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    }
    
    .upload-form, .custom-user-panel {
        width: 98%;
        margin: 0 auto;
    }

 

    .gallery-item img {
        max-height: 200px;
    }
}
/* ======= Artwork Manager Specific Styles ======= */
#artwork-form {
  
    margin-top: 20px;
    padding: 2px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    visibility:hidden;
}

#artwork-form {
    transition: opacity 0.3s ease;
    opacity: 0;
    visibility:visible;
}

#artwork-form.visible {
    display: block!important;
    opacity: 1;
}


#artwork-form .form-group {
    margin-bottom: 15px;
}

#artwork-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#artwork-form input[type="text"],
#artwork-form input[type="number"],
#artwork-form select,
#artwork-form textarea {
    width: 100%;
    padding: 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#artwork-form button[type="submit"] {
    background-color: #0073aa;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#artwork-form button[type="submit"]:hover {
    background-color: #005177;
}
