/* ================== Portfolio Header ================== */
.portfolio-header {
    margin: 20px 0;
    text-align: center;
}
.portfolio-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}
.portfolio-header p {
    font-size: 18px;
    color: #555;
}

/* ================== Card Grid ================== */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 5px 0 10px;
}
.card-container .card {
    width: 15%;
    min-width: 130px;
    max-width: 200px;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.25);
    text-align: center;
    cursor: pointer;
    transition: transform 0.4s ease-in-out;
    position: relative;
    background: #888;
}
.card-container .card:hover {
    transform: scale(1.05);
}
.card-container .card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}
.card-container .card h2 {
    font-size: 14px;
    margin: 8px 6px 2px 6px;
    color: white;
    font-weight: 600;
    line-height: 1.2rem;
}

.form-table td,
.form-table tr {
    margin-bottom: 9px;
    padding: 5px 10px;
    line-height: 1.3;
    vertical-align: middle;
}

/* ================== Lightbox ================== */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 999999;
    display: flex; 
    justify-content: center; 
    align-items: center; 
}
.lightbox-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 50%;
    min-width: 300px;
    position: relative;
    margin: 0 auto;
}
.lightbox img {
    width: 60%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.lightbox h2 {
    margin-bottom: 10px;
}
.lightbox p {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}
p.lightbox-shortdesc {
    padding: 0 13% 10px;    
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.3;
}
.lightbox-close {
    position: absolute;
    top: 14px;
    right: 17px;
    font-size: 40px;
    cursor: pointer;
    color: #333;
}
.lightbox-close:hover {
    color: red;
    cursor: pointer;
}
.lightbox-longdesc {
    font-size: 13px;
    line-height: 1.3rem;
    background: #efefef;
    padding: 16px 60px 18px !important;
    margin: 0 -20px 20px;
    text-align: left;
    font-weight: 600;
    font-style: italic;
}
.lightbox-longtitle {
    display: none;  /* Also hidden until "More" is shown */
}
button.lightbox-morebtn {
    padding: 4px 20px;
    border-radius: 6px;
    border: 1px solid #999;
    box-shadow: 0 0 6px rgba(0,0,0,0.2);    
    float: right;
    margin-right: 32px;
}
button.lightbox-morebtn:hover {
    cursor: pointer;
    background: #887;
    color: white;
    box-shadow: 0 0 6px rgba(0,0,0,0.5);
}
.lightbox-content {
    max-height: 90vh;
    overflow-y: auto;
}

/* ================== Lightbox Nav Buttons ================== */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: black;
    cursor: pointer;
    background: #fff;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: none; /* Only shown if there are multiple artworks */
    height: 45px;
    width: 45px;
    border: 1px solid #dfdfdf;
}

.preview-lightbox .lightbox-nav {
    padding: 16px 10px 10px;
    height: 27px;
    width: 33px;
}

.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

/* ================== Additional Info Container ================== */
.lightbox-additional-info {
    margin-top: 22px;
    display: none; /* Hidden until toggled */
}
.lightbox-descriptionheading {
    margin-top: 1em;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

/* ================== Container Wrappers for Additional Info ================== */
.series-container,
.material-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    font-size: 13px;
}

.lightbox-seriesheading,
.lightbox-materialheading {
    font-size: 14px;
    font-weight: bold;
    text-align: left;
    margin-right: 7px;
}

.features-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin: 0;
    font-size: 14px;
    align-content: flex-start;
    flex-wrap: wrap;
}

.lightbox-featuresheading {
    font-size: 14px;
    font-weight: bold;
    text-align: left;
    margin-right: 7px;
}

ul.lightbox-features {
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
}

ul.lightbox-features li {
    background: #7e7e7e;
    margin: 2px 4px;
    padding: 0 12px;
    font-size: 9px;
    border-radius: 9px;
    color: white;
    font-weight: 600;
}

/* ================== Copy Button in Admin Listing ================== */
.copy-btn {
    margin-left: 5px;
    padding: 3px 6px;
    font-size: 12px;
    cursor: pointer;
}


/* ================ Responsive styles ============================  */

@media only screen and (max-width: 768px) {
    .lightbox-content {
      width: 94%;
      margin: 0 auto; /* to keep it centered */
      /* Possibly adjust or remove min-width if needed */
    }
  }