
.modal-header .close {
    margin-top: -18px;
}

.modal-title {
	font-size: 155%;
}

.modal-content .dismiss {
	float: right;
	margin-right: 20px;
	margin-bottom: 8px;
}

.modal {
	left: 5%;
	
  width: 90%;
  margin: auto;
}

.modal.fade.in {
	top: 1%;
}

.modal-body {
	max-height: 2000px;
}

/* === Casket Lightbox === */
#casket-lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.88);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
#casket-lightbox.active {
  opacity: 1;
  pointer-events: auto;
  cursor: zoom-out;
}
#casket-lightbox-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
}
#casket-lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border: 3px solid rgba(255,255,255,0.85);
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  display: block;
}
#casket-lightbox.loading #casket-lightbox-img { display: none; }
#casket-lightbox-spinner {
  display: none;
  width: 44px; height: 44px;
  border: 4px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lb-spin 0.75s linear infinite;
}
#casket-lightbox.loading #casket-lightbox-spinner { display: block; }
@keyframes lb-spin { to { transform: rotate(360deg); } }
#casket-lightbox-caption {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-top: 14px;
  text-align: center;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
  max-width: 90vw;
}
#casket-lightbox-close {
  position: fixed;
  top: 14px; right: 18px;
  color: #fff;
  font-size: 44px;
  line-height: 1;
  cursor: pointer;
  font-weight: 300;
  opacity: 0.75;
  transition: opacity 0.15s;
  user-select: none;
}
#casket-lightbox-close:hover { opacity: 1; }

/* === Casket card hover === */
.casket-img-link { display: block; cursor: zoom-in; }
.casket-img-link .img-container { overflow: hidden; }
.casket-img-link .img-container img {
  transition: transform 0.3s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.casket-img-link:hover .img-container img { transform: scale(1.06); }
.casket-img-link:hover .img-container { box-shadow: 0 4px 16px rgba(0,0,0,0.2); }

/* === Responsive filters === */
#filter-toggle {
  display: none;
  margin-bottom: 10px;
  width: 100%;
}
.filters-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 20px;
}
.filter-group { flex: 1 1 130px; min-width: 130px; }
.filter-group label { display: block; margin: 3px 0; cursor: pointer; }
.filter-group-scroll { flex: 1 1 160px; min-width: 160px; }
.filter-group-scroll .scroll-list {
  height: 150px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 4px 8px;
  background: #fafafa;
}
.filter-group-scroll .scroll-list label { display: block; margin: 2px 0; cursor: pointer; }
.filter-title { font-weight: bold; margin-bottom: 6px; display: block; font-size: 110%; }

@media (max-width: 767px) {
  #filter-toggle { display: block; }
  #filter-panel { display: none; }
  .filter-group, .filter-group-scroll { flex: 1 1 100%; }
}
/* === Modern Casket Cards === */
.casket-card {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.09);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  height: 100%;
}
.casket-img-link:hover .casket-card {
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transform: translateY(-3px);
}
.casket-card .img-container {
  overflow: hidden;
  height: 200px;
}
.casket-card .img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.casket-img-link:hover .casket-card .img-container img { transform: scale(1.06); }
.casket-card-body {
  padding: 10px 13px 14px;
  border-top: 1px solid #f0f0f0;
}
.casket-card-body .potDesc {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  line-height: 1.35;
}
.casket-interior {
  display: block;
  font-size: 11px;
  color: #999;
  margin-top: 3px;
  text-transform: capitalize;
}
.casket-section-header {
  font-size: 15pt;
  font-weight: 600;
  color: #444;
  border-bottom: 2px solid #e8e8e8;
  padding-bottom: 8px;
  margin-bottom: 4px;
  width: 100%;
  clear: both;
}
/* override default anchor color on cards */
.casket-img-link, .casket-img-link:hover { color: inherit; text-decoration: none; }
