/* =========================================
   GALERIA – STYL BLACK & GOLD
========================================= */

.gallery-page {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 65px 35px 90px;
    box-sizing: border-box;
    color: var(--text, #f3f0e9);
}

/* Nagłówek galerii */

.gallery-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    margin-bottom: 45px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(201, 164, 92, .25);
}

.gallery-heading h1 {
    margin: 0 0 12px;
    color: var(--gold-light, #e5c783);
    font-family: var(--serif, Georgia, serif);
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 400;
    letter-spacing: 1px;
}

.gallery-heading p {
    margin: 0;
    color: var(--muted, #a5a39d);
    font-size: 15px;
    letter-spacing: .5px;
}

/* Przycisk dodawania zdjęć */

.gallery-add-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border: 1px solid var(--gold, #c9a45c);
    border-radius: 3px;
    background: transparent;
    color: var(--gold-light, #e5c783);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .7px;
    text-transform: uppercase;
    transition: background .25s ease,
    color .25s ease,
    box-shadow .25s ease;
}

.gallery-add-button:hover {
    background: var(--gold, #c9a45c);
    color: #090a0b;
    box-shadow: 0 5px 20px rgba(201, 164, 92, .18);
}

/* Siatka albumów */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

/* Karta albumu */

.gallery-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(201, 164, 92, .18);
    border-radius: 4px;
    background: #111315;
    color: var(--text, #f3f0e9);
    text-decoration: none;
    transition: transform .3s ease,
    border-color .3s ease,
    box-shadow .3s ease;
}

.gallery-card:hover {
    transform: translateY(-6px);
    border-color: rgba(201, 164, 92, .65);
    box-shadow: 0 12px 35px rgba(0, 0, 0, .35);
}

/* Zdjęcie albumu */

.gallery-card > img {
    display: block;
    width: 100%;
    height: 245px;
    object-fit: cover;
    background: #08090a;
    transition: transform .5s ease;
}

.gallery-card:hover > img {
    transform: scale(1.04);
}

.gallery-card {
    isolation: isolate;
}

.gallery-card-info {
    position: relative;
    z-index: 1;
    padding: 23px 22px 20px;
    background: #111315;
}

.gallery-card-info h3 {
    margin: 0 0 12px;
    color: var(--gold-light, #e5c783);
    font-family: var(--serif, Georgia, serif);
    font-size: 23px;
    font-weight: 400;
    line-height: 1.3;
}

.gallery-card-info p {
    min-height: 44px;
    margin: 0 0 18px;
    color: #aaa9a3;
    font-size: 13px;
    line-height: 1.7;
}

.gallery-card-info span {
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid rgba(201, 164, 92, .3);
    border-radius: 2px;
    color: var(--gold-light, #e5c783);
    font-size: 11px;
    letter-spacing: .5px;
}

.gallery-card-info .add-date {
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid rgba(201, 164, 92, .13);
    color: #777873;
    font-size: 11px;
}

/* Brak zdjęcia */

.gallery-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 245px;
    background: linear-gradient(135deg, #151719, #090a0b);
    color: var(--gold-dark, #8d6d35);
    font-family: var(--serif, Georgia, serif);
    font-size: 18px;
    letter-spacing: 1px;
}

/* Pusta galeria */

.gallery-grid > p {
    grid-column: 1 / -1;
    padding: 45px 20px;
    border: 1px solid rgba(201, 164, 92, .2);
    background: #111315;
    color: var(--muted, #a5a39d);
    text-align: center;
    font-family: var(--serif, Georgia, serif);
    font-size: 19px;
}

/* =========================================
   RESPONSYWNOŚĆ
========================================= */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 1000px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}

@media (max-width: 620px) {
    .gallery-page {
        padding: 40px 18px 60px;
    }

    .gallery-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }

    .gallery-heading h1 {
        font-size: 38px;
    }

    .gallery-add-button {
        width: 100%;
        box-sizing: border-box;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-card > img,
    .gallery-no-image {
        height: 230px;
    }

    .gallery-card-info {
        padding: 20px;
    }
}
/* =========================================
   WIDOK POJEDYNCZEGO ALBUMU
========================================= */

.gallery-session-page {
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    padding: 45px 35px 85px;
    box-sizing: border-box;
}

.gallery-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 35px;
    color: var(--gold, #c9a45c);
    text-decoration: none;
    font-size: 13px;
    transition: color .25s ease;
}

.gallery-back:hover {
    color: var(--gold-light, #e5c783);
}

.gallery-back span {
    font-size: 20px;
}

.gallery-session-heading {
    margin-bottom: 38px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(201, 164, 92, .22);
}

.gallery-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--gold-dark, #8d6d35);
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: 600;
}

.gallery-session-heading h1 {
    margin: 0 0 15px;
    color: var(--gold-light, #e5c783);
    font-family: var(--serif, Georgia, serif);
    font-size: clamp(34px, 5vw, 48px);
    font-weight: 400;
}

.gallery-session-heading p {
    max-width: 850px;
    margin: 0;
    color: var(--muted, #a5a39d);
    font-size: 14px;
    line-height: 1.8;
}

/* Zdjęcia albumu */

.gallery-photos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.gallery-photo {
    position: relative;
    display: block;
    width: 100%;
    height: 230px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(201, 164, 92, .2);
    border-radius: 3px;
    background: #111315;
    cursor: pointer;
}

.gallery-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease, opacity .4s ease;
}

.gallery-photo:hover {
    border-color: var(--gold, #c9a45c);
}

.gallery-photo:hover img {
    transform: scale(1.07);
    opacity: .75;
}

.gallery-photo-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    background: rgba(0, 0, 0, .25);
    transition: opacity .3s ease;
}

.gallery-photo:hover .gallery-photo-overlay {
    opacity: 1;
}

.gallery-photo-overlay span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 1px solid var(--gold, #c9a45c);
    border-radius: 50%;
    color: var(--gold-light, #e5c783);
    font-size: 28px;
    font-weight: 300;
}

.gallery-empty {
    padding: 45px 20px;
    border: 1px solid rgba(201, 164, 92, .2);
    background: #111315;
    color: var(--muted, #a5a39d);
    text-align: center;
}

/* =========================================
   PODGLĄD ZDJĘĆ – LIGHTBOX
========================================= */

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 65px 90px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, .96);
}

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

body.gallery-lightbox-open {
    overflow: hidden;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

#lightboxImage {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 145px);
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    cursor: zoom-in;
    transition: transform .15s ease;
    transform-origin: center center;
}

.lightbox-counter {
    margin-top: 18px;
    color: var(--gold-light, #e5c783);
    font-size: 13px;
    letter-spacing: 2px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(201, 164, 92, .45);
    border-radius: 50%;
    background: rgba(15, 16, 17, .85);
    color: var(--gold-light, #e5c783);
    cursor: pointer;
    transition: background .25s ease, color .25s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--gold, #c9a45c);
    color: #090a0b;
}

.lightbox-close {
    top: 25px;
    right: 30px;
    width: 45px;
    height: 45px;
    font-size: 30px;
    line-height: 1;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    width: 48px;
    height: 48px;
    font-size: 19px;
    transform: translateY(-50%);
}

.lightbox-prev {
    left: 25px;
}

.lightbox-next {
    right: 25px;
}

/* =========================================
   RESPONSYWNOŚĆ
========================================= */

@media (max-width: 1100px) {
    .gallery-photos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .gallery-photos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .gallery-photo {
        height: 210px;
    }

    .gallery-lightbox {
        padding: 65px 60px;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }
}

@media (max-width: 620px) {
    .gallery-session-page {
        padding: 30px 18px 60px;
    }

    .gallery-session-heading h1 {
        font-size: 34px;
    }

    .gallery-photos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .gallery-photo {
        height: 160px;
    }

    .gallery-lightbox {
        padding: 65px 12px 45px;
    }

    #lightboxImage {
        max-width: 100%;
        max-height: calc(100vh - 150px);
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }

    .lightbox-prev,
    .lightbox-next {
        top: auto;
        bottom: 10px;
        width: 42px;
        height: 42px;
        transform: none;
    }

    .lightbox-prev {
        left: calc(50% - 55px);
    }

    .lightbox-next {
        right: calc(50% - 55px);
    }

    .lightbox-counter {
        margin-top: 10px;
    }
}
/* Przycisk zamykania – lekkie obniżenie X */
.gallery-lightbox .lightbox-close {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px 0 0 0;
    line-height: 1;
    font-family: Arial, sans-serif;
    font-size: 28px;
}

/* Poprawienie położenia licznika zdjęć */
.gallery-lightbox .lightbox-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    max-height: calc(100vh - 120px);
    overflow: visible;
    padding-bottom: 35px;
    box-sizing: border-box;
}

.gallery-lightbox #lightboxImage {
    max-height: calc(100vh - 190px);
    object-fit: contain;
}

.gallery-lightbox .lightbox-counter {
    position: relative;
    margin-top: 10px;
    margin-bottom: 15px;
    z-index: 100010;
    background: #090a0b;
    color: #fff;
    border: 2px solid #d4af37;
    padding: 9px 20px;
}
/* =========================================
   PANEL ZARZĄDZANIA GALERIĄ – EDYCJA ZDJĘĆ
========================================= */

.admin-gallery-page {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 45px 30px 65px;
    box-sizing: border-box;
    color: #eee;
}

/* Powrót */

.admin-gallery-page .gallery-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 30px;
    color: var(--gold, #c9a45c);
    font-size: 13px;
    text-decoration: none;
    transition: color .25s ease;
}

.admin-gallery-page .gallery-back:hover {
    color: var(--gold-light, #e5c783);
}

/* Nagłówek */

.admin-gallery-heading {
    margin-bottom: 35px;
}

.admin-gallery-eyebrow {
    display: block;
    margin-bottom: 9px;
    color: var(--gold, #c9a45c);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
}

.admin-gallery-heading h1 {
    margin: 0 0 10px;
    color: var(--gold-light, #e5c783);
    font-family: var(--serif, Georgia, serif);
    font-size: clamp(30px, 4vw, 38px);
    font-weight: 400;
}

.admin-gallery-heading p {
    margin: 0;
    color: var(--muted, #a5a39d);
    font-size: 14px;
}

/* Komunikat sukcesu */

.admin-gallery-page .gallery-success {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    padding: 14px 18px;
    color: #b9e6bd;
    background: rgba(35, 120, 55, .12);
    border: 1px solid rgba(75, 170, 90, .35);
    border-radius: 4px;
    font-size: 13px;
}

/* Sekcje panelu */

.admin-gallery-form-section,
.admin-gallery-page .admin-current-images {
    padding: 28px;
    margin-bottom: 30px;
    background: #111315;
    border: 1px solid rgba(201, 164, 92, .25);
    border-radius: 4px;
}

.admin-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
}

.admin-section-heading h2 {
    margin: 0 0 7px;
    color: var(--gold-light, #e5c783);
    font-family: var(--serif, Georgia, serif);
    font-size: 23px;
    font-weight: 400;
}

.admin-section-heading p {
    margin: 0;
    color: var(--muted, #a5a39d);
    font-size: 12px;
}

/* Formularz edycji */

.admin-gallery-edit-form {
    width: 100%;
}

.admin-gallery-edit-form .form-field {
    margin-bottom: 23px;
}

.admin-gallery-edit-form .form-field label {
    display: block;
    margin-bottom: 9px;
    color: var(--gold-light, #e5c783);
    font-size: 13px;
    font-weight: 600;
}

.admin-gallery-edit-form input:not([type="checkbox"]):not([type="file"]),
.admin-gallery-edit-form textarea,
.admin-gallery-edit-form select {
    width: 100%;
    padding: 13px 15px;
    box-sizing: border-box;
    color: #eee;
    background: #090a0b;
    border: 1px solid rgba(201, 164, 92, .3);
    border-radius: 3px;
    outline: none;
    font-size: 14px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.admin-gallery-edit-form textarea {
    min-height: 120px;
    resize: vertical;
}

.admin-gallery-edit-form input:focus,
.admin-gallery-edit-form textarea:focus,
.admin-gallery-edit-form select:focus {
    border-color: var(--gold, #c9a45c);
    box-shadow: 0 0 0 3px rgba(201, 164, 92, .1);
}

.admin-gallery-edit-form input[type="file"] {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    color: #aaa;
    background: #090a0b;
    border: 1px dashed rgba(201, 164, 92, .45);
    border-radius: 3px;
    font-size: 13px;
}

.admin-gallery-edit-form input[type="file"]::file-selector-button {
    padding: 9px 14px;
    margin-right: 12px;
    color: #090a0b;
    background: var(--gold, #c9a45c);
    border: none;
    border-radius: 2px;
    font-weight: 600;
    cursor: pointer;
}

.admin-gallery-edit-form small {
    display: block;
    margin-top: 9px;
    color: #888;
    font-size: 11px;
    line-height: 1.6;
}

.admin-gallery-edit-form .form-field ul,
.admin-gallery-edit-form .form-field .form-error-message {
    color: #ff7777;
    font-size: 12px;
}

/* Przycisk zapisu */

.admin-gallery-page .gallery-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 12px 25px;
    color: #090a0b;
    background: var(--gold, #c9a45c);
    border: 1px solid var(--gold, #c9a45c);
    border-radius: 3px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: .25s ease;
}

.admin-gallery-page .gallery-submit-button:hover {
    background: var(--gold-light, #e5c783);
    border-color: var(--gold-light, #e5c783);
    box-shadow: 0 5px 20px rgba(201, 164, 92, .18);
}

/* Licznik zdjęć */

.admin-image-count {
    flex-shrink: 0;
    padding: 8px 13px;
    color: var(--gold-light, #e5c783);
    background: rgba(201, 164, 92, .08);
    border: 1px solid rgba(201, 164, 92, .3);
    border-radius: 2px;
    font-size: 11px;
}

/* Siatka zdjęć administracyjnych */

.admin-photos-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.admin-photo-card {
    min-width: 0;
    overflow: hidden;
    background: #090a0b;
    border: 1px solid rgba(201, 164, 92, .2);
    border-radius: 3px;
    transition: border-color .25s ease, transform .25s ease;
}

.admin-photo-card:hover {
    border-color: rgba(201, 164, 92, .7);
    transform: translateY(-3px);
}

.admin-photo-preview {
    width: 100%;
    height: 190px;
    overflow: hidden;
    background: #08090a;
}

.admin-photo-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.admin-photo-card:hover .admin-photo-preview img {
    transform: scale(1.04);
}

/* Przyciski usuwania */

.admin-photo-actions {
    padding: 12px;
}

.admin-photo-actions form {
    width: 100%;
}

.admin-gallery-page .gallery-delete-button {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #e87878;
    background: rgba(150, 30, 30, .12);
    border: 1px solid rgba(220, 65, 65, .35);
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: .25s ease;
}

.admin-gallery-page .gallery-delete-button:hover {
    color: #fff;
    background: #a52b2b;
    border-color: #c94444;
}

/* Pusta galeria */

.admin-gallery-empty {
    grid-column: 1 / -1;
    padding: 45px 20px;
    color: var(--muted, #a5a39d);
    text-align: center;
    background: #090a0b;
    border: 1px dashed rgba(201, 164, 92, .25);
    border-radius: 3px;
}

.admin-gallery-empty i {
    display: block;
    margin-bottom: 13px;
    color: var(--gold, #c9a45c);
    font-size: 30px;
}

.admin-gallery-empty p {
    margin: 0;
    font-size: 13px;
}

/* Responsywność panelu */

@media (max-width: 1050px) {
    .admin-photos-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 750px) {
    .admin-photos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-gallery-page {
        padding: 35px 20px 50px;
    }
}

@media (max-width: 500px) {
    .admin-gallery-page {
        padding: 25px 14px 40px;
    }

    .admin-gallery-heading h1 {
        font-size: 27px;
    }

    .admin-gallery-form-section,
    .admin-gallery-page .admin-current-images {
        padding: 20px 15px;
    }

    .admin-section-heading h2 {
        font-size: 19px;
    }

    .admin-photos-grid {
        grid-template-columns: 1fr;
    }

    .admin-photo-preview {
        height: 220px;
    }

    .admin-image-count {
        font-size: 10px;
    }
}

/* =========================================
   PANEL ADMINISTRACYJNY – LISTA SESJI
========================================= */

.admin-gallery-panel .admin-gallery-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 35px;
}

.admin-gallery-panel .gallery-add-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 12px 20px;
    box-sizing: border-box;
    color: #090a0b;
    background: #c9a45c;
    border: 1px solid #c9a45c;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: .25s ease;
}

.admin-gallery-panel .gallery-add-button:hover {
    background: #e5c783;
    border-color: #e5c783;
    box-shadow: 0 5px 18px rgba(201, 164, 92, .2);
}

.admin-gallery-panel-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(201, 164, 92, .2);
}

.admin-gallery-panel-info h2 {
    margin: 0 0 6px;
    color: #e5c783;
    font-family: Georgia, serif;
    font-size: 23px;
    font-weight: 400;
}

.admin-gallery-panel-info p {
    margin: 0;
    color: #a5a39d;
    font-size: 12px;
}

.admin-panel-gallery-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #090a0b;
}

.admin-panel-gallery-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.admin-gallery-panel .gallery-card:hover .admin-panel-gallery-image img {
    transform: scale(1.05);
}

.admin-panel-photo-count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    color: #e5c783;
    background: rgba(9, 10, 11, .9);
    border: 1px solid rgba(201, 164, 92, .55);
    border-radius: 3px;
    font-size: 11px;
}

.admin-gallery-panel .gallery-card-info > span {
    display: none;
}

.admin-gallery-panel .gallery-card-info h3 {
    color: #e5c783;
}

.admin-gallery-panel .gallery-admin-actions {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-top: 18px;
}

.admin-gallery-panel .gallery-admin-actions form {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.admin-gallery-panel .gallery-edit-button,
.admin-gallery-panel .gallery-delete-button {
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: .25s ease;
}

.admin-gallery-panel .gallery-edit-button {
    color: #090a0b;
    background: #c9a45c;
    border: 1px solid #c9a45c;
}

.admin-gallery-panel .gallery-edit-button:hover {
    background: #e5c783;
    border-color: #e5c783;
    box-shadow: 0 4px 15px rgba(201, 164, 92, .18);
}

.admin-gallery-panel .gallery-delete-button {
    color: #e87878;
    background: rgba(150, 30, 30, .12);
    border: 1px solid rgba(220, 65, 65, .35);
}

.admin-gallery-panel .gallery-delete-button:hover {
    color: #fff;
    background: #a52b2b;
    border-color: #c94444;
}

.admin-gallery-panel .gallery-no-image {
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #a5a39d;
    background: #090a0b;
    font-size: 12px;
}

.admin-gallery-panel .gallery-no-image i {
    color: #c9a45c;
    font-size: 32px;
}

.admin-gallery-panel .admin-gallery-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 55px 20px;
    color: #a5a39d;
    background: #111315;
    border: 1px dashed rgba(201, 164, 92, .3);
    text-align: center;
}

.admin-gallery-panel .admin-gallery-empty i {
    color: #c9a45c;
    font-size: 35px;
}

.admin-gallery-panel .admin-gallery-empty p {
    margin: 0;
    color: #e5c783;
    font-size: 16px;
}

.admin-gallery-panel .admin-gallery-empty span {
    font-size: 12px;
}

@media (max-width: 750px) {
    .admin-gallery-panel .admin-gallery-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-gallery-panel .gallery-add-button {
        width: 100%;
    }

    .admin-gallery-panel-info h2 {
        font-size: 20px;
    }
}

@media (max-width: 500px) {
    .admin-gallery-panel .gallery-admin-actions {
        flex-direction: column;
    }

    .admin-gallery-panel .gallery-admin-actions form {
        width: 100%;
    }

    .admin-gallery-panel .gallery-admin-actions a,
    .admin-gallery-panel .gallery-admin-actions button {
        min-height: 44px;
    }

    .admin-panel-gallery-image,
    .admin-gallery-panel .gallery-no-image {
        height: 200px;
    }
}
/* Poprawka – przyciski nie wychodzą poza kartę */

.admin-gallery-panel .gallery-admin-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.admin-gallery-panel .gallery-admin-actions > a,
.admin-gallery-panel .gallery-admin-actions > form {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.admin-gallery-panel .gallery-admin-actions form {
    flex: initial;
    margin: 0;
}

.admin-gallery-panel .gallery-edit-button,
.admin-gallery-panel .gallery-delete-button {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 10px 5px;
    box-sizing: border-box;
    white-space: nowrap;
    font-size: 11px;
}

@media (max-width: 500px) {
    .admin-gallery-panel .gallery-admin-actions {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   PANEL GALERII – DODAWANIE ZDJĘĆ
========================================= */

.admin-gallery-add-page {
    max-width: 1100px;
}

.admin-gallery-add-page .admin-gallery-heading {
    margin-bottom: 30px;
}

.admin-gallery-add-section {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 35px;
    box-sizing: border-box;
}

.admin-gallery-add-section .admin-section-heading {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(201, 164, 92, .2);
}

.admin-add-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9a45c;
    background: rgba(201, 164, 92, .08);
    border: 1px solid rgba(201, 164, 92, .35);
    border-radius: 3px;
    font-size: 20px;
}

.admin-gallery-add-page .admin-gallery-edit-form {
    margin-top: 25px;
}

.admin-gallery-add-page .admin-gallery-edit-form .form-field {
    margin-bottom: 25px;
}

.admin-gallery-add-page .admin-gallery-edit-form input:not([type="checkbox"]):not([type="file"]),
.admin-gallery-add-page .admin-gallery-edit-form textarea,
.admin-gallery-add-page .admin-gallery-edit-form select {
    width: 100%;
    box-sizing: border-box;
}

.admin-gallery-add-page .admin-gallery-file-field {
    padding: 20px;
    background: #090a0b;
    border: 1px dashed rgba(201, 164, 92, .4);
    border-radius: 3px;
}

.admin-gallery-add-page .admin-gallery-file-field input[type="file"] {
    width: 100%;
    box-sizing: border-box;
}

.admin-gallery-add-page .admin-gallery-file-field small {
    line-height: 1.7;
}

.admin-gallery-add-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 10px;
    border-top: 1px solid rgba(201, 164, 92, .15);
}

.admin-gallery-add-page .gallery-submit-button {
    min-width: 180px;
}

@media (max-width: 600px) {
    .admin-gallery-add-section {
        padding: 20px 15px;
    }

    .admin-gallery-add-section .admin-section-heading {
        align-items: flex-start;
    }

    .admin-add-icon {
        width: 40px;
        height: 40px;
        font-size: 17px;
    }

    .admin-gallery-add-actions {
        justify-content: stretch;
    }

    .admin-gallery-add-page .gallery-submit-button {
        width: 100%;
    }

    .admin-gallery-add-page .admin-gallery-file-field {
        padding: 15px 12px;
    }
}


