body { font-family: Arial, sans-serif; 
margin:0;  
text-align:center;  
background-color:#333;

background-size:contain;
background-repeat: no-repeat;
background-attachment: fixed;
max-width:100%; overflow-x:hidden }

h1,h2,h3,h4 {
  font-family: "Special Gothic Condensed One", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size:1.5em;
}

@media (max-width:760px) { .gallery img, .gallery video { width:100%; } }

	a{ text-decoration:none;}

/* Gallery main grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    max-width: 1400px;
    margin: 10px auto;
    padding: 0 10px;
}

.gallery img {
    width: 100%;   
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.5s ease; /* Smooth hover zoom */
    display: block;
    transform-origin: center center;
    object-fit: cover;
}

.gallery img:hover {
    transform: scale(1.5);
    border: 2px solid black; 
    border-radius: 10px;
}

/* Gallery list */
.gallery-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
    max-width: 1400px;
    margin: auto; 
}

.gallery-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.gallery-item img {
    width: 100%;
    min-height: 170px;
    overflow: hidden;
    object-fit: cover;
    display: block;
}

.gallery-item.first {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.first img {
    min-height: 400px;
}

/* Small icons */
.smallicon {
    max-width: 25px;
    max-height: 25px;
    border: 2px solid black;
    border-radius: 5px;
    background-color: #ccc !important;
}
/* icons */
.icon {
    width: 50px;
    height: 50px;
    border: 2px solid black;
    border-radius: 50px;
	
}
.icon:hover {
    width: 50px;
    height: 50px;
    border: 2px solid black;
    border-radius: 50px;
	background-color: orange !important;
	animation: fadeIn 0.3s ease;
}
/* Buttons */
button {
    background: #ff6600;
    color: white;
    margin: 6px;
    padding: 6px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

/* Tags */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin: 5px 0;
}

.tag-link {
    background: #444;
    color: #fff;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.tag-link a {
    color: #fff;
}

.tag-link:hover {
    background: #ccc;
}

.tag-icon {
    margin-right: 4px;
    font-size: 0.9em;
}

/* ----- MOBILE RESPONSIVE ----- */
@media (max-width: 760px) {
    .gallery img, .gallery video {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .gallery, .gallery-list {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 10px; 
    }

    .gallery-item.first {
        grid-column: auto; /* remove span on mobile */
        grid-row: auto;
    }
}

/* Full-screen overlay background */
.overlay-message {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6); /* semi-transparent black */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: pointer;
  animation: fadeIn 0.3s ease;
}

/* The message box */
.overlay-box {
  background: #fff;
  color: #333;
  padding: 20px 30px;
  border-radius: 12px;
  font-size: 1.2em;
  text-align: center;
  position: relative;
  max-width: 90%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Success and error styling */
.overlay-box.success {
  border-left: 6px solid #28a745; /* green */
}
.overlay-box.error {
  border-left: 6px solid #dc3545; /* red */
}

/* Close icon */
.overlay-close {
  position: absolute;
  top: 6px;
  right: 10px;
  color: #666;
  font-size: 1.2em;
}
.overlay-close:hover {
  color: #000;
}
	input,select,textarea{ background-color:#EEE; color:#333}
	
	 .video-wrapper {
    position: absolute;   /* or absolute if inside another container */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .video-wrapper iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 ratio (9/16 = 0.5625) */
    min-height: 100vh;
    min-width: 177.78vh; /* (16/9)*100 */
    transform: translate(-50%, -50%);
    border: 0;
  }


.media_gallery {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, 1fr); /* 2 columns max */
  grid-auto-rows: auto;                 /* let rows grow with content */
}

.media_gallery_item:first-child {
  grid-column: span 2;   /* first image full width */
  height: 200px;         /* make it taller naturally */
  overflow:hidden;
}

.media_gallery_item img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* fill the grid cell */
  display: block;
}