/* =====================================================
   Pinter Gallery – UI/UX Polish (Pinterest Feel)
   FILE PATH:
   public_html/pinter-gallery/assets/css/style.css
===================================================== */

/* -------- Global Enhancements -------- */
body {
  scroll-behavior: smooth;
}

/* -------- Gallery Masonry Feel -------- */
.gallery-grid {
  column-gap: 1rem;
}

@media (min-width: 640px) {
  .gallery-grid { column-count: 2; }
}
@media (min-width: 1024px) {
  .gallery-grid { column-count: 3; }
}
@media (min-width: 1280px) {
  .gallery-grid { column-count: 4; }
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

.gallery-item img {
  width: 100%;
  display: block;
}

/* -------- Hover Overlay -------- */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent 60%);
  opacity: 0;
  transition: opacity .25s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-actions {
  position: absolute;
  top: .75rem;
  right: .75rem;
  display: flex;
  gap: .5rem;
}

.action-btn {
  background: rgba(255,255,255,.95);
  border-radius: 999px;
  padding: .5rem;
  font-size: .85rem;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.action-btn:hover {
  background: #ef4444;
  color: #fff;
  transform: scale(1.05);
}

/* -------- Caption -------- */
.gallery-caption {
  position: absolute;
  bottom: .75rem;
  left: .75rem;
  right: .75rem;
  color: #fff;
}

.gallery-caption h3 {
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
}

.gallery-caption p {
  font-size: .75rem;
  opacity: .85;
}

/* -------- Buttons -------- */
.btn-primary {
  background: #e60023;
  color: #fff;
  border-radius: .75rem;
  padding: .6rem 1.2rem;
  font-weight: 600;
  transition: background .2s ease, transform .2s ease;
}

.btn-primary:hover {
  background: #c3001d;
  transform: translateY(-1px);
}

/* -------- Modal (future JS hook) -------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-backdrop.show { display: flex; }

.modal-content {
  max-width: 90vw;
  max-height: 90vh;
}

.modal-content img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 1rem;
}
/* Clock*/
/* Clock Styling */
.clock {
    width: 200px;
    height: 200px;
background: rgba(0,0,0,.9);
    border-radius: 50%;
    position: relative;
    box-shadow: inset 0 0 25px #000, 0 10px 30px rgba(0,0,0,0.5);
    border: 4px solid #1a1a1a;
}

.clock .hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom;
    background: white;
    border-radius: 5px;
    transform: translateX(-50%);
}

.hour { width: 4px; height: 50px; z-index: 3; }
.minute { width: 3px; height: 70px; z-index: 2; }
.second { width: 2px; height: 80px; background: #ff0000 !important; z-index: 1; }

.dot {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 10px; height: 10px;
    background: white;
    border-radius: 50%;
    z-index: 10;
}

.numbers {
    position: absolute;
    width: 100%; height: 100%;
    color: #fff;
    font-size: 14px;
}

.numbers span {
    position: absolute;
    inset: 10px;
    text-align: center;
    transform: rotate(calc(30deg * var(--i)));
}
.numbers b { transform: rotate(calc(-30deg * var(--i))); display: inline-block; }