/* Gallery Container */
.cv-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
    background: #f4f6f9;
		margin-top:120px;
}

/* Individual Card */
.cv-card {
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 10px;
    width: 260px; /* Card Width */
    padding: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cv-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-color: #007bff;
}

/* Image Inside Card */
.img-box {
    width: 100%;
    height: 320px; /* Fixed Height for consistency */
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid #eee;
    margin-bottom: 12px;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills box without stretching */
    transition: transform 0.5s;
}

.cv-card:hover .img-box img {
    transform: scale(1.05); /* Slight zoom on hover */
}

/* Typography */
.cv-card h3 {
    font-size: 18px;
    color: #2c3e50;
    margin: 10px 0 15px 0;
    font-weight: 600;
}

/* Buttons */
.btn-group {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-preview {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}
.btn-preview:hover { background: #5a6268; }

.btn-create {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: 0.3s;
}
.btn-create:hover { background: #0056b3; }

/* --- MODAL (POPUP) CSS --- */
.modal {
  display: none; 
  position: fixed; 
  z-index: 9999; 
  padding-top: 50px; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(0,0,0,0.85); 
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.close:hover { color: #bbb; }

/* Responsive Code for Mobile */
@media screen and (max-width: 700px) {
  .cv-card { width: 100%; } /* Full width on mobile */
  .modal-content { width: 95%; }
}
