﻿body {
     margin:0;
    font-family:Arial;
    background:#bff2df;
}

/* Card */
.form-card{
    max-width:450px;
    margin:20px auto;
    background:#fff;
    padding:20px;
    border-radius:16px;
    box-shadow:0 8px 20px rgba(0,0,0,.12);
}

/* Upload only admin */
.upload-area{
    margin-bottom:20px;
}

/* Gallery */
.gallery{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:15px;
    padding:15px;
}

.member-card{
    background:#ffffff;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 6px 16px rgba(0,0,0,.15);
}

.member-card img{
    width:100%;
    height:240px;
    object-fit:contain;   /* 🔥 full image fit */
    background:#000;
}

.info{
    padding:10px;
    text-align:center;
}

.info h4{
    margin:5px 0;
}

.info p{
    margin:0;
    font-size:13px;
    color:#555;
}
/* Image zoom effect */
.member-card img{
    width:100%;
    height:240px;
    object-fit:contain;
    background:#000;
    transition:all .3s ease;
    cursor:zoom-in;
}

/* Zoomed state */
.member-card img.zoomed{
    position:fixed;
    top:0;
    left:0;
    width:100vw;
    height:100vh;
    background:#000;
    object-fit:contain;
    z-index:9999;
    cursor:zoom-out;
}

.member-card img {
    cursor: pointer;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
}
.member-card {
    position: relative;
}

.delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,0,0,0.85);
    color: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    text-align: center;
    line-height: 28px;
    font-size: 14px;
    text-decoration: none;
    z-index: 5;
}

.delete-btn:hover {
    background: red;
}
/* EDIT BUTTON - LEFT */
.edit-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #2196f3;
    color: #fff;
    padding: 6px 8px;
    border-radius: 50%;
    font-size: 14px;
    text-decoration: none;
    z-index: 10;
}

/* MODAL BACKGROUND */
.modal-bg {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.6);
    z-index: 999;
}

/* MODAL BOX */
.modal-box {
    background: #fff;
    width: 90%;
    max-width: 400px;
    margin: 80px auto;
    padding: 20px;
    border-radius: 10px;
}

.form-control {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
}

/*.btn-update {
    background: #2196f3;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
}

.btn-cancel {
    background: #999;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
}*/

/* BUTTON ROW */
.modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 15px;
}

/* SAME SIZE FOR BOTH */
.btn-update,
.btn-cancel {
    flex: 1;                 /* same width */
    height: 42px;            /* same height */
    font-size: 15px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

/* UPDATE */
.btn-update {
    background: #2196f3;
    color: #fff;
}

/* CANCEL */
.btn-cancel {
    background: #9e9e9e;
    color: #fff;
}

