* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background-color: #050505;
    color: #fff;
    padding: 40px 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.back-btn {
    color: #fff;
    text-decoration: none;
    letter-spacing: 2px;
    font-size: 14px;
    text-transform: uppercase;
}

.admin-action-btn {
    background: transparent;
    border: 1px solid #ffffff40;
    color: #fff;
    padding: 8px 16px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    transition: 0.3s;
}

.admin-action-btn:hover {
    background: #fff;
    color: #000;
}

/* გალერეის ბადე */
.gallery-container h2 {
    text-align: center;
    letter-spacing: 10px;
    font-weight: 200;
    margin-bottom: 40px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    background: #111;
    border: 1px solid #222;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.photo-info {
    padding: 15px;
    background: #111;
}

.photo-info .category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    margin-bottom: 5px;
}

.photo-info .desc {
    font-size: 14px;
    font-weight: 300;
    color: #ccc;
}













/* --- მოდალური ფანჯარა (LOGIN POPUP) --- */
.modal {
    display: none;            /* თავიდან დამალულია, JS აქცევს flex-ად */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* მუქი გამჭვირვალე ფონი უკან */
    justify-content: center;
    align-items: center;
    z-index: 9999;            /* ყოველთვის ყველაფრის ზემოდან რომ იყოს */
}

/* მოდალური ფანჯრის შიგთავსი */
.modal-content {
    background: #161616;      /* მუქი ნაცრისფერი ფონი ფორმისთვის */
    padding: 40px;
    border: 1px solid #333;
    max-width: 400px;
    width: 90%;               /* მობილურებზეც რომ კარგად გამოჩნდეს */
    text-align: center;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.modal-content h3 {
    letter-spacing: 4px;
    font-weight: 300;
    margin-bottom: 25px;
    text-transform: uppercase;
    font-size: 18px;
}

/* ინპუტების (ტექსტის ჩასაწერი გრაფების) სტილი */
.modal-content input, .upload-section input, .upload-section select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: #222;
    border: 1px solid #444;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border 0.3s;
}

.modal-content input:focus {
    border-color: #888;       /* ჩაწერისას ჩარჩო ნათდება */
}

/* ღილაკების სტილი ფორმის შიგნით */
.modal-content button, .upload-section button {
    width: 100%;
    padding: 12px;
    background: #fff;
    color: #000;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    margin-top: 10px;
    transition: background 0.3s;
}

.modal-content button:hover, .upload-section button:hover {
    background: #ccc;
}

/* დახურვის ღილაკი */
#closeLogin {
    background: transparent;
    color: #888;
    border: 1px solid #333;
    margin-top: 5px;
}

#closeLogin:hover {
    background: #ff3333;
    color: #fff;
    border-color: #ff3333;
}

/* ატვირთვის სექცია */
.upload-section {
    background: #111;
    padding: 30px;
    border: 1px solid #222;
    max-width: 500px;
    width: 100%;
    margin: 0 auto 40px auto;
}

.upload-section h3 {
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 2px;
}

/* Lightbox */
#lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.93);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 30px;
    animation: fadeInLightbox 0.3s ease;
}

@keyframes fadeInLightbox {
    from { opacity: 0; }
    to { opacity: 1; }
}

#lightbox.active {
    display: flex;
}

.lightbox-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    width: 100%;
    position: relative;
}

#lightbox-img {
    max-height: 75vh;
    max-width: 100%;
    object-fit: contain;
    border: 1px solid #222;
    box-shadow: 0 0 60px rgba(0,0,0,0.8);
    animation: zoomIn 0.35s ease;
}

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

.lightbox-info {
    margin-top: 20px;
    text-align: center;
}

.lightbox-info .lb-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #c5a880;
    margin-bottom: 8px;
}

.lightbox-info .lb-desc {
    font-size: 15px;
    font-weight: 300;
    color: #ddd;
    letter-spacing: 1px;
}

#lightbox-close {
    position: fixed;
    top: 25px;
    right: 30px;
    color: #888;
    font-size: 36px;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

#lightbox-close:hover {
    color: #fff;
}

/* cursor pointer on images */
.gallery-item img {
    cursor: pointer;
}

/* წაშლის ღილაკი */
.delete-btn {
    margin-top: 10px;
    width: 100%;
    padding: 8px;
    background: transparent;
    border: 1px solid #ff444440;
    color: #ff6666;
    cursor: pointer;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: 0.3s;
}

.delete-btn:hover {
    background: #ff4444;
    color: #fff;
    border-color: #ff4444;
}