/* Container Styles */
.container {
    max-width: 110%;
    padding: 20px 100px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .container {
        padding: 0px;
    }
}

/* Grid Layout */
.row {
    margin: 0px;
}

.col-md-6.col-12.text-center {
    padding: 0px;
}

.col-md-6.col-12.text-center img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}


/* Modal Styling */
/* Modal container and content styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0.5, 0.8); 
    justify-content: center;
    align-items: center;
    z-index: 1050;
} 

.modal-content {
    position: relative;
    width: 90vmin; 
    height: 90vmin; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content img {
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain; 
    display: block;
    margin: 0 auto;
    padding: 0;
    border: none; 
}

.modal-content {
    position: relative;
    width: 90vmin; 
    height: 90vmin; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content img {
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain; 
    display: block;
    margin: 0 auto;
    padding: 0;
    border: none; 
}

/* Modal button styles */
.modal-buttons.prev-btn,
.modal-buttons.next-btn,
.close-btn {
    background-size: contain;
    cursor: pointer;
    z-index: 1100; 
    border: none;
    padding: 0;
    outline: none; 
    box-shadow: none; 
}

.modal-buttons.prev-btn {
    background: url('extra/prev_pijl.png') no-repeat center center;
    width: 100px; 
    height: 80px;
    position: absolute;
    left: 10px; 
    top: 50%;
    transform: translateY(-50%);
}

.modal-buttons.prev-btn:hover {
    background-image: url('extra/prev_pijl_hover.png'); 
    /* Change the hover background image if needed */
    animation: shake 0.5s ease-in-out;
}

.modal-buttons.next-btn {
    background: url('extra/next_pijl.png') no-repeat center center;
    width: 80px; 
    height: 80px;
    position: absolute;
    right: 10px; 
    top: 50%;
    transform: translateY(-50%);
}

.modal-buttons.next-btn:hover {
    background-image: url('extra/next_pijl_hover.png'); 
    /* Change the hover background image if needed */
    animation: shake 0.5s ease-in-out;
}

.close-btn {
    background: url('extra/Exit_button.png') no-repeat center center;
    width: 100px; 
    height: 100px;
    position: absolute;
    top: 10px;
    right: 10px;
}

.close-btn:hover {
    background-image: url('extra/Exit_button_hover.png');
    animation: rotate 2s linear infinite;
}

@keyframes shake {
    0%, 100% {
      transform: translateY(-50%) translateX(0);
    }
    25% {
      transform: translateY(-50%) translateX(-5px);
    }
    50% {
      transform: translateY(-50%) translateX(5px);
    }
    75% {
      transform: translateY(-50%) translateX(-5px);
    }
  }

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


/* Ensure focus outline is removed for all buttons */
.modal-buttons, .close-btn {
  border: none;
  outline: none; /* Remove focus outline */
  box-shadow: none; /* Prevent any visual feedback like box shadows */
}

.modal-buttons:focus, .close-btn:focus {
  outline: none; /* Extra safeguard for focus styles */
  box-shadow: none; /* Prevent any focus-related box shadows */
}

/* Gallery Grid */
/* Container and responsiveness */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 50px;
}

.gallery-intro {
    margin-left: 50px;
}

@media (max-width: 768px) {
    .gallery-container {
    grid-template-columns: repeat(2, 1fr);
	padding: 10px;
    }
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

/* Font Definitions */
/* AvantGardGothEF-Book */
@font-face {
    font-family: 'AvantGardGothEF-Book';
    src: url('fonts/AvantGardGothEF-Book.woff2') format('woff2'),
         url('fonts/AvantGardGothEF-Book.woff') format('woff'),
         url('fonts/AvantGardGothEF-Book.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

p {
    font-family: 'AvantGardGothEF-Book', sans-serif; 
    font-size: 1rem; 
    font-weight: normal; 
    line-height: 1.7; 
    color: #000; 
}

/* AvantGardGothEF-Demi */
@font-face {
    font-family: 'AvantGardGothEF-Demi';
    src: url('fonts/AvantGardGothEF-Demi.woff2') format('woff2'),
         url('fonts/AvantGardGothEF-Demi.woff') format('woff'),
         url('fonts/AvantGardGothEF-Demi.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

h2 {
    font-family: 'AvantGardGothEF-Demi', sans-serif; 
    font-size: 4rem; 
    font-weight: normal; 
    color: #000; 
}

@media (max-width: 768px) {
  /* give the main container a 10px gutter on each side */
  .container {
    padding: 0 10px;
  }

  /* make sure your intro text also respects that gutter */
  .gallery-intro {
    margin-left: 0;
    padding: 0 10px;
	padding-top: 50px;
    text-align: left;   /* or center, if you prefer */
  }

  /* if you have any standalone <h2> or <p> outside of .container,
     or specific utility classes, you can add: */
  h2, p {
    padding: 0 10px;
  }
}

