:root {
    --bg-color: #0a0a0a;
    --text-color: #f5f5f5;
    --accent-color: #d4af37;
    --secondary-bg: #1a1a1a;
    --border-color: #222222;
    --font-main: 'Inter', sans-serif;
    --font-ar: 'Noto Sans Arabic', sans-serif;
}

[dir="rtl"] {
    --font-main: 'Noto Sans Arabic', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

[dir="rtl"] body {
    font-family: var(--font-ar);
}

header {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

[dir="rtl"] nav ul li {
    margin-left: 2rem;
    margin-right: 0;
}

header {
    direction: ltr !important;
}

header * {
    direction: ltr !important;
}

/* Language Switcher (Generic) */
.lang-switcher {
    display: flex;
    align-items: center;
}

/* Slide Switch Styles */
.lang-switch {
    position: relative;
    display: inline-block;
    width: 64px;
    height: 32px;
    cursor: pointer;
}

.lang-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--secondary-bg);
    transition: .4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 32px;
    border: 1px solid var(--border-color);
}

.slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background-color: var(--accent-color);
    transition: .4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

input:checked+.slider:before {
    transform: translateX(32px);
}

[dir="rtl"] input:checked+.slider:before {
    transform: translateX(32px);
}

.lang-labels {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
    font-size: 10px;
    font-weight: 800;
    color: #888;
    z-index: 1;
    text-transform: uppercase;
    pointer-events: none;
}

.lang-labels span {
    transition: color 0.3s;
}

input:not(:checked)~.lang-labels .label-en {
    color: #000;
}

input:checked~.lang-labels .label-ar {
    color: #000;
}

.lang-link {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-color);
}

main {
    padding-top: 120px;
}

/* Gallery (Masonry) */
.gallery {
    columns: 3 300px;
    column-gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    background: none !important;
}

.gallery-item {
    display: block;
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    line-height: 0;
    border-radius: 0 !important;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0 !important;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-item:hover img {
    transform: none;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    /* Increased height for smoother fade */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 40%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 5;
}

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

.gallery-item-id {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #ffcc00;
    /* Yellow */
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

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

/* Lightbox Customization */
.glightbox-container .gslide-description {
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 100% !important;
}

.glightbox-container .gdesc-inner {
    padding: 1.5rem 2rem !important;
    text-align: center;
}

.glightbox-container .gslide-title {
    color: var(--accent-color) !important;
    font-family: var(--font-main);
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.5rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.glightbox-container .gslide-desc {
    color: #ccc !important;
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
}

/* Remove default white bg if any */
.glightbox-container .gslide-description.description-bottom {
    background: rgba(0, 0, 0, 0.8) !important;
}

/* Loader */
.loader {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--accent-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* About Page */
.about-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.about-container h1 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 3rem;
    color: var(--accent-color);
}

.about-content {
    max-width: 800px;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: #ccc;
    line-height: 1.8;
}

.about-inline-img {
    max-width: 500px;
    margin: 2.5rem auto;
    line-height: 0;
}

.about-inline-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 2px;
}

.about-inline-img p {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
    margin-top: 0.8rem;
    line-height: 1.4;
}

.about-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #222;
}

.about-section h2 {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.about-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    margin: 2rem 0;
}

.about-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 2px;
}

/* France Mosaic */
.france-mosaic {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 120px;
    gap: 6px;
    margin: 2rem 0;
}

.france-item {
    overflow: hidden;
    line-height: 0;
}

.france-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 2px;
    transition: transform 0.4s ease;
}

.france-item:hover img {
    transform: scale(1.05);
}

.france-item-1 {
    grid-column: span 7;
    grid-row: span 2;
}

.france-item-2 {
    grid-column: span 5;
    grid-row: span 3;
}

.france-item-3 {
    grid-column: span 4;
    grid-row: span 2;
}

.france-item-4 {
    grid-column: span 3;
    grid-row: span 1;
}

.france-item-5 {
    grid-column: span 5;
    grid-row: span 2;
}

/* Exhibitions Page */
.exhibitions-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 4rem 0;
}

.exhibitions-container h1 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 3rem;
    color: var(--accent-color);
    padding: 0 2rem;
}

.exhibition-entry {
    margin-bottom: 0;
    padding: 3rem 0;
    border-bottom: 1px solid #1a1a1a;
}

.exhibition-entry:last-child {
    border-bottom: none;
}

.exhibition-header {
    margin-bottom: 1.5rem;
    padding: 0 2rem;
}

.exhibition-header h2 {
    font-family: var(--font-main);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}



.exhibition-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exhibition-date {
    color: var(--accent-color);
    font-weight: 600;
}

.exhibition-description {
    font-size: 0.95rem;
    color: #aaa;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.exhibition-gallery {
    columns: 3 250px;
    column-gap: 4px;
    width: 100%;
}

.exhibition-img {
    display: inline-block;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin-bottom: 4px;
}

.exhibition-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.exhibition-img:hover img {
    transform: scale(1.05);
}

/* Show More Functionality */
.exhibition-gallery-wrapper {
    position: relative;
    width: 100%;
}

.exhibition-gallery-wrapper.collapsed .exhibition-gallery {
    max-height: 500px;
    /* Adjust based on desired initial height */
    overflow: hidden;
}

.hidden-img {
    display: none !important;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent, var(--bg-color));
    pointer-events: none;
    z-index: 10;
    display: none;
}

.exhibition-gallery-wrapper.collapsed .gallery-overlay {
    display: block;
}

.show-more-btn {
    display: block;
    margin: 1.5rem auto 0;
    padding: 0.8rem 2rem;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    position: relative;
    z-index: 20;
}

.show-more-btn:hover {
    background: var(--accent-color);
    color: #000;
}

[dir="rtl"] .show-more-btn {
    font-family: var(--font-ar);
}

/* Contact Page */
.contact-container {
    max-width: 600px;
    margin: 4rem auto;
    padding: 0 2rem;
    text-align: center;
}

.contact-container h1 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.contact-info {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* =============================
   Auth Pages (Login & Setup)
   ============================= */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px);
    padding: 2rem 1rem;
}

.auth-card {
    background: linear-gradient(145deg, #1a1a1a 0%, #141414 100%);
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.auth-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.auth-card h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.auth-subtitle {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 2rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group textarea {
    padding: 0.9rem 1rem;
    background: #0d0d0d;
    border: 1px solid #333;
    border-radius: 10px;
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1.05rem;
    min-height: 52px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    box-sizing: border-box;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-group input::placeholder {
    color: #555;
}

.auth-btn {
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, #c9a030 100%);
    border: none;
    border-radius: 10px;
    color: #000;
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    min-height: 52px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 0.5rem;
}

.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-error {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff6b7a;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-align: center;
}

.auth-success {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #5dde82;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-align: center;
}

.nav-active {
    color: var(--accent-color) !important;
    font-weight: 600;
}

/* =============================
   Admin Dashboard
   ============================= */
.admin-container {
    max-width: 95%;
    width: 1600px;
    margin: 0 auto;
    padding: 1rem 1.5rem 4rem;
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #222;
    padding-bottom: 1rem;
}

.admin-tab {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    color: #888;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #111;
    border: 1px solid #222;
}

.admin-tab:hover {
    color: #ccc;
    border-color: #444;
}

.admin-tab.active {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
}

.admin-container h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.admin-subtitle {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* File Upload Area */
.file-upload-area {
    position: relative;
    border: 2px dashed #333;
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
    background: #0d0d0d;
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.file-upload-area:hover,
.file-upload-area:focus-within {
    border-color: var(--accent-color);
    background: rgba(212, 175, 55, 0.04);
}

.file-upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    font-size: 0;
}

.file-upload-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.file-upload-text {
    font-size: 1.1rem;
    color: #aaa;
    font-weight: 500;
}

.file-upload-hint {
    font-size: 0.8rem;
    color: #555;
    margin-top: 0.3rem;
}

.file-preview {
    width: 100%;
}

.file-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.file-preview p {
    font-size: 0.85rem;
    color: #888;
    word-break: break-all;
}

.admin-upload-btn {
    padding: 1.1rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, #c9a030 100%);
    border: none;
    border-radius: 12px;
    color: #000;
    font-family: var(--font-main);
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    min-height: 56px;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 0.5rem;
}

.admin-upload-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35);
}

.admin-upload-btn:active {
    transform: translateY(0);
}

.admin-divider {
    height: 1px;
    background: #222;
    margin: 3rem 0 2rem;
}

.admin-section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ccc;
    margin-bottom: 1.5rem;
}

/* Painting Cards in Admin */
.admin-paintings-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.admin-painting-card {
    display: flex;
    flex-direction: column;
    background: #141414;
    border: 1px solid #222;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.admin-painting-card:hover {
    border-color: #333;
}

.admin-painting-img {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.admin-painting-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-painting-info {
    padding: 0.8rem;
    text-align: center;
    flex: 1;
}

.admin-painting-info h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-painting-meta {
    font-size: 0.75rem;
    color: #777;
}

.admin-actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 0.8rem 0.8rem;
}

/* Footer */
footer {
    padding: 3rem 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    border-top: 1px solid #222;
    background: #050505;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-lang-switcher {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .gallery {
        columns: 2;
    }

    .exhibition-gallery {
        columns: 2;
    }
}

@media (max-width: 600px) {
    .gallery {
        columns: 1;
    }

    .exhibition-gallery {
        columns: 1;
    }

    header {
        flex-direction: column;
        padding: 0.8rem;
        gap: 0.5rem;
    }

    .logo a {
        font-size: 1.2rem;
    }

    nav ul {
        margin-top: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    nav ul li {
        margin: 0;
    }

    [dir="rtl"] nav ul li {
        margin: 0;
    }

    .lang-switcher {
        padding-left: 0.5rem;
        border-left: 1px solid var(--border-color);
    }

    [dir="rtl"] .lang-switcher {
        padding-right: 0.5rem;
        border-right: 1px solid var(--border-color);
    }

    .about-container h1,
    .exhibitions-container h1 {
        font-size: 2rem;
    }

    .exhibitions-container {
        padding: 3rem 1.5rem;
    }

    .exhibition-header h2 {
        font-size: 1.4rem;
    }

    .exhibition-title-ar {
        display: block;
        margin-left: 0;
        margin-top: 0.3rem;
    }

    .exhibition-meta {
        flex-direction: column;
        gap: 0.3rem;
    }

    .about-inline-img {
        max-width: 100%;
    }

    .about-gallery {
        grid-template-columns: 1fr;
    }

    /* Auth mobile */
    .auth-card {
        padding: 2rem 1.5rem;
        border-radius: 12px;
    }

    .auth-card h1 {
        font-size: 1.5rem;
    }

    /* Admin mobile */
    .admin-container {
        padding: 1.5rem 1rem 3rem;
    }

    .admin-container h1 {
        font-size: 1.6rem;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }

    .admin-painting-img {
        width: 56px;
        height: 56px;
        min-width: 56px;
    }

    .admin-painting-info h3 {
        font-size: 0.9rem;
    }
}

/* =============================
   Floating Upload Button (FAB)
   ============================= */
.floating-upload-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #c9a030 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(212, 175, 55, 0.2);
    text-decoration: none;
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.floating-upload-btn:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.4);
}

.plus-icon {
    color: #000;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    margin-top: -2px;
    /* Visual centering */
}

@media (max-width: 600px) {
    .floating-upload-btn {
        right: 50%;
        left: auto;
        transform: translateX(50%);
        bottom: 25px;
        width: 56px;
        height: 56px;
    }

    .floating-upload-btn:hover {
        transform: translateX(50%) scale(1.1);
    }
}

/* Gallery Admin Controls */
.gallery-item-container {
    position: relative;
    overflow: hidden;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    -moz-column-break-inside: avoid;
    page-break-inside: avoid;
    margin: 0;
    padding: 0;
    line-height: 0;
    border: none;
    outline: none;
    border-radius: 0 !important;
}

.gallery-admin-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item-container:hover .gallery-admin-controls {
    opacity: 1;
}

.gallery-delete-btn,
.gallery-edit-btn {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

.gallery-delete-btn:hover {
    background: #ff4444;
    transform: scale(1.1);
}

.gallery-edit-btn:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .gallery-admin-controls {
        opacity: 1;
        top: 5px;
        right: 5px;
    }

    .gallery-delete-btn,
    .gallery-edit-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}