/* Global styles for Rock Pictures */
html, body {
  margin: 0;
  padding: 0;
  background: #000; /* black */
  color: #fff; /* white text */
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}

a, a:visited { color: #ffffff; text-decoration: none; }
a:hover { color: #ebc174; text-decoration: underline; }

header, footer { padding: 16px; }
header { border-bottom: 1px solid #222; }
footer { border-top: 1px solid #222; color: #aaa; font-size: 0.8em; }

.container { max-width: 1100px; margin: 0 auto; padding: 16px; }

h1, h2, h3 { color: #ebc174; margin: 0 0 12px 0; font-weight: 400; }

nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
nav li { display: inline; }

.lang-switch { float: right; }
.lang-switch a { margin-left: 8px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.card { background: #111; border: 1px solid #222; padding: 0px; border-radius: 6px; }
.card img { width: 100%; height: auto; border-radius: 4px; display: block; }

/* Masonry layout option */
.masonry { column-count: 4; column-gap: 12px; }
.masonry .card { display: inline-block; width: 100%; margin: 0 0 12px; }

.input, input[type="text"], input[type="email"], input[type="password"], textarea, select { background: #111; color: #fff; border: 1px solid #333; padding: 8px; border-radius: 4px; width: 100%; }
.button, button, input[type="submit"] { background: transparent; color: #ebc174; font-weight: 400; padding: 8px 12px; border: 1px solid #ebc174; border-radius: 4px; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.button:hover, button:hover, input[type="submit"]:hover { background: #ebc174; color: #000; border-color: #ebc174; text-decoration: none; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { border: 1px solid #222; padding: 8px; }
.table th { background: #111; color: #ebc174; text-align: left; }

form .row { display: grid; grid-template-columns: 1fr 3fr; gap: 12px; align-items: center; margin-bottom: 10px; }
.alert { background: #13313a; border: 1px solid #ebc174; padding: 10px; border-radius: 4px; margin-bottom: 12px; }

.header-bar { display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: #ebc174; text-decoration: none; }
.brand img { height: 48px; width: auto; display: block; border-radius: 2px; }
.brand-title { font-size: 1.6em; color: #ebc174; }
.header-bar .lang-switch { margin-left: auto; float: none; }


/* Responsive enhancements */
img, video { max-width: 100%; height: auto; }

@media (max-width: 1100px) {
  .masonry { column-count: 3; }
}
@media (max-width: 900px) {
  .container { padding: 12px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .brand img { height: 40px; }
  .masonry { column-count: 2; }
}

@media (max-width: 600px) {
  header, footer { padding: 12px; }
  .container { padding: 12px; }
  .header-bar { flex-wrap: wrap; }
  .header-bar .lang-switch { width: 100%; text-align: right; margin-top: 6px; }
  nav ul { justify-content: center; gap: 10px; }
  form .row { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .card { padding: 8px; }
  .brand img { height: 36px; }
  .table { display: block; width: 100%; overflow-x: auto; white-space: nowrap; }
  .button, button, input[type="submit"] { width: 100%; }
  .masonry { column-count: 1; }
}

/* Uniform card fill (default grid): crop to cover inside a fixed aspect ratio box) */
.photo-card .photo-wrap { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.photo-card .photo-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* If using masonry layout, let images define their height (no crop) */
.masonry .photo-card .photo-wrap { aspect-ratio: auto; overflow: visible; }
.masonry .photo-card .photo-wrap img { position: static; width: 100%; height: auto; object-fit: contain; }

.photo-card .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.0) 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  padding: 10px;
  border-radius: 4px;
  background: #ffffff87;
}
.photo-card:hover .overlay, .photo-card:focus-within .overlay { opacity: 1; }
.overlay-title {
  font-weight: 400;
  color: #000000;
  margin-bottom: 8px;
}
.round-btn {
  /*align-self: flex-start;*/
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: #000 !important;
  border: none !important;
  /*border: 2px solid #000; cursor: pointer; font-size: 18px;*/
  font-weight: 400;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.round-btn:hover { background: #000; color: #fff !important; }
.round-btn svg { width: 22px; height: 22px; fill: currentColor; display: block; }

/* Modal */
.modal.hidden { display: none; }
.modal { position: fixed; inset: 0; z-index: 1000; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.75); }
.modal-content { position: relative; max-width: 900px; margin: 5vh auto; background: #111; border: 1px solid #333; border-radius: 8px; padding: 16px; z-index: 1001; max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; }
.modal-close { position: absolute; top: 8px; right: 12px; background: transparent; border: none; color: #fff; font-size: 28px; cursor: pointer; }
.modal img { width: 100%; height: auto; border-radius: 4px; margin-bottom: 10px; max-height: 70vh; object-fit: contain; }
.muted { color: #ccc; }

@media (max-width: 600px) {
  .round-btn { width: 36px; height: 36px; font-size: 16px; }
  .modal-content { margin: 2vh 10px; padding: 12px; }
  .modal img { max-height: 60vh; }
}

/* Splash page */
body.splash header, body.splash nav, body.splash footer { display: none; }
body.splash main .container { max-width: none; padding: 0; }
.splash-stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #000; }
.splash-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(0.85); opacity: 0; transition: opacity 1s ease; }
.splash-bg.active { opacity: 1; }
.splash-overlay { position: fixed; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.splash-content { max-width: 800px; }
.splash-title { font-size: 2.2rem; color: #ebc174; margin: 16px 0; font-weight: 400; }
.splash-logo { width: 140px; height: auto; border-radius: 3px; }
@media (max-width: 600px) {
  .splash-title { font-size: 1.6rem; }
  .splash-logo { width: 110px; }
}
