:root {
  --bg-color: #1a1c1e; /* Sophisticated dark charcoal/navy-grey */
  --text-color: #e0e0e0;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --accent-color: #c5a47e;
  --font-heading: "Times New Roman", Times, serif; /* Classical serif look */
}

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative; /* For pseudo-element positioning */
}

/* Background Silhouette/Texture */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://images.unsplash.com/photo-1618331835717-801e976710b2?q=80&w=2560&auto=format&fit=crop"); /* Abstract Smoke/Shadow */
  background-size: cover;
  background-position: center;
  opacity: 0.1; /* Very subtle */
  pointer-events: none;
  z-index: -1;
  filter: grayscale(100%);
}

/* Header */
header {
  width: 100%;
  padding: 2rem 0;
  text-align: center;
  background: radial-gradient(circle at top, #2a2d30, transparent);
  position: relative; /* For absolute positioning of admin icon if needed */
}

h1 {
  font-family: var(--font-heading);
  color: var(--accent-color);
  font-weight: normal;
  font-size: 2.5rem;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.social-links a {
  color: var(--text-color);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.social-links a:hover {
  opacity: 1;
}

/* Admin Icon */
.admin-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-icon {
  width: 20px;
  height: 20px;
  fill: var(--text-color);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.admin-link:hover .admin-icon {
  opacity: 1;
  fill: var(--accent-color);
}

/* Main Container */
main {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Section Common */
section {
  width: 100%;
  max-width: 1000px;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Fixed 4 columns as requested */
  gap: 20px;
  width: 100%;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(
      2,
      1fr
    ); /* 2 columns on mobile for readability */
  }
}

/* Glassmorphism Card */
.photo-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 2px; /* Sharper edges */
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 1 / 1; /* Square cards */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.photo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.photo-card img, .photo-card video {

    width: 100%;

    height: 100%;

    object-fit: cover;

    filter: grayscale(100%); /* Default Grayscale */

    transition: transform 0.5s ease, filter 0.5s ease;

}



.photo-card:hover img, .photo-card:hover video {

    transform: scale(1.05);

    filter: grayscale(0%); /* Color on hover */

}

.photo-card iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Overlay Title on Hover */
.photo-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  font-size: 0.9rem;
  text-align: center;
}

.photo-card:hover .photo-info {
  transform: translateY(0);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center; /* Center alignment */
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 80px;
}

.dot {
  width: 20px;
  height: 10px;
  background-color: var(--glass-border);
  border-radius: 30%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: var(--accent-color);
}

/* About Section */
.about-section {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  margin: 80px 0;
  align-items: flex-start;
  justify-content: center;
}

.about-text {
  flex: 1;
  min-width: 300px;
  font-size: 1rem;
  line-height: 1.8;
  color: #ccc;
  text-align: left;
}

.about-text h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--accent-color);
  font-weight: normal;
}

.about-text p {
  margin-bottom: 1.5rem;
}

.about-image {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
}

.about-image img {
  width: 100%;
  height: auto;
  filter: grayscale(100%) contrast(1.2);
  border-radius: 0;
}

/* Contact Section */
.contact-section {
  text-align: center;
  margin: 60px 0 100px;
  width: 100%;
}

.contact-section h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
  font-weight: normal;
}

.contact-subtitle {
  color: #999;
  margin-bottom: 3rem;
}

.contact-btn {
  display: inline-block;
  padding: 15px 40px;
  border: 1px solid var(--text-color);
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.contact-btn:hover {
  background: var(--text-color);
  color: var(--bg-color);
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  max-width: 95%;
  max-height: 95%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content img,
.modal-content video {
  max-width: 100%;
  max-height: 90vh;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.modal-close {
  position: fixed; /* Fixed to screen */

  top: 30px;

  right: 30px;

  width: 50px; /* Large enough to be seen and clicked */

  height: 50px;

  background: none;

  border: none;

  padding: 0;

  cursor: pointer;

  z-index: 9999; /* Highest priority */

  color: #ffffff;

  opacity: 0.8;

  transition: all 0.3s ease;

  display: flex;

  align-items: center;

  justify-content: center;
}

.modal-close svg {
  width: 100%; /* Fill the container */

  height: 100%;

  stroke-width: 1; /* Thinner than default but clearly visible */

  filter: drop-shadow(
    0 0 5px rgba(0, 0, 0, 0.5)
  ); /* Better visibility on bright images */
}

.modal-close:hover {
  color: var(--accent-color);

  opacity: 1;

  transform: rotate(90deg) scale(1.1);
}

/* Footer */
footer {
  width: 100%;
  padding: 40px 20px;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.5;
  margin-top: auto;
  border-top: 1px solid var(--glass-border);
}

footer a {
  color: inherit;
  text-decoration: none;
}

/* Admin Panel Styles (Preserved) */
.admin-container {
  width: 100%;
  max-width: 600px;
  padding: 20px;
}

.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 16px;
  margin-bottom: 2rem;
}

input,
select,
button {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-color);
  box-sizing: border-box;
}

button {
  background: var(--accent-color);
  color: #000;
  font-weight: bold;
  cursor: pointer;
  border: none;
  transition: opacity 0.3s;
}

button:hover {
  opacity: 0.9;
}

.delete-btn {
  background: #cf6679;
  color: #000;
  position: absolute;
  top: 5px;
  right: 5px;
  width: auto;
  padding: 5px 10px;
  font-size: 0.8rem;
  z-index: 10;
}
