/*
Theme Name: Foto Sinidulu Gallery
Theme URI: https://foto.sinidulu.com
Author: Gemini & Sinidulu Team
Description: Tema minimalis khusus galeri foto dengan fokus kecepatan dan SEO.
Version: 1.0
*/

/* Reset Dasar */
body { font-family: sans-serif; margin: 0; padding: 0; background: #f5f5f5; color: #333; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* Header */
header { background: #fff; padding: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); text-align: center; }
header h1 { margin: 0; font-size: 24px; }
header nav { margin-top: 10px; }

/* Layout Galeri (Grid) */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.photo-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    position: relative;
}

.photo-card:hover { transform: translateY(-5px); }
.photo-card img { width: 100%; height: 250px; object-fit: cover; }

.photo-meta { padding: 10px; font-size: 14px; color: #666; }

/* Halaman Single Foto */
.single-photo-container {
    max-width: 900px;
    margin: 30px auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.photo-main { flex: 2; }
.photo-sidebar { flex: 1; background: #f9f9f9; padding: 20px; border-radius: 8px; }

.download-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: #0073aa;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 10px;
}
.download-btn:hover { background: #005177; }

/* --- Header Layout --- */
.site-header {
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 10px 20px;
    position: sticky; /* Agar header nempel di atas saat scroll */
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

/* 1. Logo */
.header-logo {
    flex-shrink: 0;
}
.header-logo img {
    height: 50px; /* Ukuran fix agar square/rapi */
    width: auto;
    border-radius: 4px; /* Opsional: sedikit melengkung */
}
.site-title-text {
    font-weight: bold;
    font-size: 20px;
    color: #333;
}

/* 2. Menu Kategori */
.header-nav {
    flex-grow: 1; /* Mengisi ruang kosong */
}
.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
}
.nav-menu li a {
    font-size: 14px;
    font-weight: 500;
    color: #555;
}
.nav-menu li a:hover { color: #000; }

/* 3. Search Bar */
.header-search form {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 5px 10px;
    background: #f9f9f9;
}
.header-search input {
    border: none;
    background: transparent;
    outline: none;
    padding: 5px;
    font-size: 14px;
}
.header-search button {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
}

/* 4. Tombol Auth */
.header-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}
.btn {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.2s;
}
.btn-outline {
    border: 1px solid #333;
    color: #333;
}
.btn-primary {
    background: #00ab6b; /* Warna hijau ala Pexels/Pixabay */
    border: 1px solid #00ab6b;
    color: #fff;
}
.btn-primary:hover { background: #008f5a; }
.user-greeting { margin-right: 5px; color: #555; display: none; } /* Hide di mobile */

/* Responsiveness (HP) */
@media (max-width: 768px) {
    .header-nav { display: none; } /* Sembunyikan menu di HP agar tidak penuh */
    .header-search { display: none; } /* Sembunyikan search bar di header HP */
    .user-greeting { display: none; }
    .header-logo img { height: 40px; }
}

/* Footer */
footer { text-align: center; padding: 20px; margin-top: 40px; color: #999; font-size: 12px; }

/* --- Footer Styles --- */
.site-footer {
    background-color: #232323; /* Latar belakang gelap */
    color: #b0b0b0; /* Teks abu-abu terang */
    padding-top: 50px;
    margin-top: 50px;
    font-size: 14px;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
    justify-content: space-between;
    gap: 30px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

/* Judul di Footer */
.footer-title {
    color: #fff;
    font-size: 20px;
    margin-bottom: 15px;
}
.widget-title {
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Link di Footer */
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-col a:hover {
    color: #fff; /* Jadi putih saat di-hover */
}

/* Social Links */
.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}
.social-links a {
    font-weight: bold;
    color: #fff;
}

/* Copyright Bar */
.site-info {
    background-color: #1a1a1a; /* Lebih gelap dari footer utama */
    padding: 20px;
    text-align: center;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.back-to-top a {
    color: #fff;
    font-weight: bold;
}

/* Responsiveness untuk HP */
@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
    }
    .site-info {
        flex-direction: column;
        gap: 10px;
    }
}

/* --- LIGHTBOX (PREVIEW FOTO) STYLES --- */

/* Latar Belakang Gelap (Overlay) */
.lightbox {
  display: none; /* Sembunyi secara default */
  position: fixed; 
  z-index: 9999; /* Pastikan di atas menu header */
  padding-top: 50px; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Hitam transparan */
}

/* Gambar di tengah */
.lightbox-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 1000px; /* Batas maksimal lebar */
  max-height: 85vh; /* Agar tidak melebihi tinggi layar */
  object-fit: contain;
  border: 2px solid #fff;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
  animation-name: zoom;
  animation-duration: 0.3s;
}

/* Animasi Zoom saat muncul */
@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

/* Tombol Close (X) */
.close-btn {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 10000;
}

.close-btn:hover,
.close-btn:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* Caption (Judul di bawah foto) */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* Responsif untuk HP */
@media only screen and (max-width: 700px){
  .lightbox-content {
    width: 95%;
  }
}