/* ==========================================================================
   UK Industries - Photo Gallery Styles
   Modular stylesheet for landscape image gallery with modal expander
   ========================================================================== */

:root {
  --gallery-accent: #dc2626;
  --gallery-text-dark: #0f172a;
  --gallery-text-muted: #64748b;
  --gallery-border: #e2e8f0;
}

/* --------------------------------------------------------------------------
   Page Header
   -------------------------------------------------------------------------- */
.gallery-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--gallery-border);
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.gallery-badge-tag {
  display: inline-block;
  background-color: #fef2f2;
  border: 1px solid #fee2e2;
  color: var(--gallery-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

.gallery-header h1 {
  font-weight: 800;
  font-size: 2.25rem;
  color: var(--gallery-text-dark);
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

.gallery-header p {
  color: var(--gallery-text-muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Gallery Section & Cards
   -------------------------------------------------------------------------- */
.gallery-section {
  padding: 4.5rem 0;
  background-color: #f8fafc;
  border-bottom: 1px solid var(--gallery-border);
}

.gallery-card {
  background-color: #ffffff;
  border: 1px solid var(--gallery-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

/* Landscape Image Frame (16:9 ratio) */
.gallery-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #0f172a;
}

.gallery-landscape-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-landscape-img {
  transform: scale(1.05);
}

/* Hover Overlay with Expand Icon */
.gallery-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-card:hover .gallery-img-overlay {
  opacity: 1;
}

.gallery-expand-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  color: var(--gallery-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: scale(0.85);
  transition: transform 0.25s ease;
}

.gallery-card:hover .gallery-expand-btn {
  transform: scale(1);
}

/* Card Body Details */
.gallery-card-body {
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.gallery-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gallery-accent);
  letter-spacing: 0.8px;
  margin-bottom: 0.35rem;
}

.gallery-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gallery-text-dark);
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.gallery-card-desc {
  font-size: 0.88rem;
  color: var(--gallery-text-muted);
  line-height: 1.55;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Modal Expander Styles (Creative & Refined)
   -------------------------------------------------------------------------- */
.gallery-modal-dialog {
  max-width: 900px;
}

.gallery-modal-content {
  border-radius: 16px;
  overflow: hidden;
  background-color: #ffffff;
  border: none;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35);
  position: relative;
}

/* Floating Cross / Close Button */
.modal-close-custom {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1065;
  padding: 0;
  line-height: 1;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.modal-close-custom:hover {
  background: var(--gallery-accent);
  border-color: var(--gallery-accent);
  color: #ffffff;
  transform: rotate(90deg) scale(1.08);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.45);
}

/* Modal Media Header */
.gallery-modal-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #0f172a;
  overflow: hidden;
}

.gallery-modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-modal-img-badge {
  position: absolute;
  bottom: 14px;
  left: 16px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
}

/* Creative Modal Details Body */
.gallery-modal-details {
  padding: 2rem 2.25rem;
  background-color: #ffffff;
}

.gallery-modal-header-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.gallery-creative-tag {
  display: inline-flex;
  align-items: center;
  background-color: #fef2f2;
  border: 1px solid #fee2e2;
  color: var(--gallery-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
}

.gallery-location-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.84rem;
  color: #64748b;
  font-weight: 500;
}

.gallery-modal-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--gallery-text-dark);
  line-height: 1.35;
  margin-bottom: 0.75rem;
  letter-spacing: -0.3px;
}

.gallery-modal-desc {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Creative Specifications / Highlights Grid */
.gallery-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.5rem;
}

.gallery-spec-item {
  display: flex;
  flex-direction: column;
}

.gallery-spec-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.6px;
  margin-bottom: 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.gallery-spec-label i {
  color: var(--gallery-accent);
  font-size: 0.85rem;
}

.gallery-spec-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

/* Modal Bottom Action Strip */
.gallery-modal-footer-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.gallery-qa-badge {
  font-size: 0.82rem;
  font-weight: 600;
  color: #166534;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
}

.gallery-modal-action-btn {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  background-color: var(--gallery-accent);
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1.15rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.gallery-modal-action-btn:hover {
  background-color: #b91c1c;
  color: #ffffff;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Pagination Styling
   -------------------------------------------------------------------------- */
.pagination-custom {
  margin-top: 3.5rem;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
}

.pagination-custom .page-link {
  color: var(--gallery-text-dark);
  border: 1px solid var(--gallery-border);
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.pagination-custom .page-link:hover {
  background-color: #fee2e2;
  border-color: #fca5a5;
  color: var(--gallery-accent);
}

.pagination-custom .page-item.active .page-link {
  background-color: var(--gallery-accent);
  border-color: var(--gallery-accent);
  color: #ffffff;
}

