@charset "utf-8";

body {
	background-color: #000000;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	overflow: auto;
}

/* ============================================
   GALLERY MODAL
   ============================================ */

#galleryModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

.gallery-modalContent {
    position: relative;
    display: flex;
    flex-direction: column;
    width: fit-content;
}

.gallery-text {
	width: 100%;
	font-family: "Imprima", sans-serif;
	font-weight: 500;
	font-size: 18px;
	color: white;
	box-sizing: border-box;
	padding: 1em;
	text-align: center;
}

/* ============================================
   GALLERY GRID
   ============================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.gallery-item:hover {
  opacity: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s;
}


.gallery-item--featured-inner {
  position: absolute;
  inset: 3px; /* matches the parent's padding: 3px */
  border-radius: 6px;
  overflow: hidden;
}

.gallery-item--featured-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

/* ============================================
   ADMIN BUTTONS
   ============================================ */

.admin-btn {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  z-index: 10;
  white-space: nowrap;
}

.admin-btn--demote {
  background: rgba(200, 255, 95, 0.85);
  color: #000;
  border-color: transparent;
}



/* ============================================
   FEATURED SLOT
   ============================================ */

.gallery-item--featured {
  aspect-ratio: 1 / 1;
  margin-bottom: 10px;
  border-radius: 8px;
}

/* ============================================
   MESSAGES
   ============================================ */

.loading-message,
.no-images-message {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 18px;
}

/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  cursor: pointer;
  animation: fadeIn 0.3s;
  padding: 40px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox img {
  max-width: calc(100% - 80px);
  max-height: calc(100% - 80px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 5px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes rotate-colors {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

.gallery-item--featured {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  margin: 0 auto 10px auto;
  border-radius: 8px;
  overflow: visible; /* changed from hidden so ::before isn't clipped */
  padding: 3px;
  background: black;
  z-index: 0;
  border: none;
}

.gallery-item--featured::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 8px;
  background: linear-gradient(45deg, 
    #EF3E51, #ff8000, #ffff00, #80ff00,
    #00ff00, #00ff80, #00ffff, #0080ff,
    #0000ff, #8000ff, #ff00ff, #ff0080
  );
  z-index: -1;
  animation: rotate-colors 3s linear infinite;
}

.gallery-item--featured img {
  border-radius: 6px; /* slightly less than parent to avoid gap */
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox {
    padding: 20px;
}
.lightbox img {
    max-width: calc(100% - 40px);
    max-height: calc(100% - 40px);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

@media only screen and (orientation: portrait) and (max-width: 1099px) {

.gallery-modalContent {
    padding-top: 5%;
    padding-bottom: 30%;
    width: 90%;
	margin: 0 auto 5%;
}
.gallery-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 10% 5%;
    margin-top: 2%;
	margin-bottom: 5%;
}
.gallery-item {
    position: relative;
	margin: 0 auto;
    aspect-ratio: 1 / 0.7;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background: #111;
	border: 2.5px solid white;
    width: 70%;
}
.gallery-item--featured {
    margin: 3% auto 3%;
    width: 100%;
	border: none;
}
	
.gallery-text {
	width: 100%;
	font-family: "Imprima", sans-serif;
	font-weight: 500;
	color: white;
	box-sizing: border-box;
	padding: 1em;
	text-align: center;
}
	
.gallery-text heading {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.gallery-text copy {
  display: block;
  font-size: 18px;
  font-weight: 500;
  color: white;
  margin: 12px 0;
}

.gallery-text copy-small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  margin: 6px 0 16px;
  font-style: italic;
}
	
}

@media only screen and (min-width: 480px) and (orientation: landscape) and (max-width: 1099px) {

.gallery-modalContent {
    padding-top: 5%;
    padding-bottom: 5%;
    width: 70%;
    margin: 0 auto;
}
.gallery-grid {
    grid-template-columns: repeat(3, 28%);
    gap: 15% 3%;
    justify-content: center;
    margin-top: 2%;
}

.gallery-item {
    position: relative;
    margin: 0 auto;
    aspect-ratio: 1 / 0.6;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background: #111;
    border: 2px solid white;
    width: 100%;
}
.gallery-item--featured {
	aspect-ratio: 16 / 7;
    margin: 3% auto 3%;
	width: 90%;
	border: none;
}
	
.gallery-text {
	width: 100%;
	font-family: "Imprima", sans-serif;
	font-weight: 500;
	color: white;
	box-sizing: border-box;
	padding: 1.5em;
	text-align: center;
}
	
.gallery-text heading {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.gallery-text copy {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: white;
  margin: 12px 0;
}

.gallery-text copy-small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  margin: 6px 0 16px;
  font-style: italic;
}
	
}

@media only screen and (min-width: 1100px) {

.gallery-modalContent {
    padding-top: 5%;
    padding-bottom: 5%;
    width: 50%;
    margin: 0 auto;
}
.gallery-grid {
    grid-template-columns: repeat(3, 28%);
    gap: 15% 3%;
    justify-content: center;
    margin-top: 2%;
}

.gallery-item {
    position: relative;
    margin: 0 auto;
    aspect-ratio: 1 / 0.6;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background: #111;
    border: 4px solid white;
    width: 100%;
}
.gallery-item--featured {
	aspect-ratio: 16 / 7;
    margin: 3% auto 3%;
	width: 90%;
	border: none;
}
.gallery-text {
	width: 100%;
	font-family: "Imprima", sans-serif;
	font-weight: 500;
	color: white;
	box-sizing: border-box;
	padding: 1.5em;
	text-align: center;
}
	
.gallery-text heading {
  display: block;
  font-size: 42px;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.gallery-text copy {
  display: block;
  font-size: 26px;
  font-weight: 500;
  color: white;
  margin: 12px 0;
}

.gallery-text copy-small {
  display: block;
  font-size: 17px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  margin: 6px 0 16px;
  font-style: italic;
}
    
}