* { margin: 0; padding: 0; box-sizing: border-box; } html, body { font-family: 'Roboto', Arial, Helvetica, sans-serif; background: #2D2D2D; } .grid-wrapper>div { display: flex; justify-content: center; align-items: center; } .grid-wrapper>div>img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; cursor: pointer; box-shadow: 0 6px 12px rgba(0, 0, 0, 0.8); } .grid-wrapper { display: grid; grid-gap: 20px; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); grid-auto-rows: 400px; grid-auto-flow: dense; margin: 75px; } @media screen and (max-width: 768px) { .grid-wrapper { grid-template-columns: auto; } .grid-wrapper .tall { grid-column: span 2; grid-row: span 2; } } .grid-wrapper .wide { grid-column: span 2; } .grid-wrapper .tall { grid-row: span 1; } .grid-wrapper .big { grid-column: span 2; grid-row: span 2; } .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.9); justify-content: center; align-items: center; } .modal-content { position: relative; display: flex; justify-content: center; align-items: center; width: 100%; height: 100%; } .modal-content img { width: auto; height: auto; max-width: 100%; max-height: 85%; display: block; margin: auto; box-shadow: 0 6px 12px rgba(0, 0, 0, 0.8); } .modal button { position: absolute; background: rgba(255, 255, 255, 0.7); border: none; padding: 10px; cursor: pointer; } .prev { left: 10px; top: 50%; transform: translateY(-50%); } .next { right: 10px; top: 50%; transform: translateY(-50%); } @media screen and (max-width: 768px) { .prev { left: 1px; } .next { right: 1px; } .info { bottom: 30px; } } @media screen and (min-width: 767px) { .info { bottom: 15px; } } .info { color: rgb(0, 0, 0); font-size: 16px; font-weight: bold; text-decoration: none; text-align: center; position: absolute; background: rgba(255, 255, 255, 0.7); border: none; padding: 11px; cursor: pointer; left: 50%; transform: translateX(-50%); } .info-page { color: rgb(0, 0, 0); font-size: 16px; font-weight: bold; text-decoration: none; text-align: center; background: rgba(255, 255, 255, 0.7); border: none; padding: 11px; cursor: pointer; } .footer { width: 100%; display: flex; align-items: center; justify-content: center; margin-bottom: 30px; } /* Modal Content */ .info-modal-content { background: rgba(255, 255, 255, 0.7); padding: 20px; border-radius: 8px; width: 600px; max-width: 90%; text-align: left; position: relative; line-height: 1.5; } .em { display: block; font-size: 1.17em; margin-block-start: 1em; margin-block-end: 1em; margin-inline-start: 0px; margin-inline-end: 0px; font-weight: bold; } .info-modal-content p { margin: 20px; } /* Close Button */ .close-btn { position: absolute; top: 10px; right: 15px; font-size: 20px; cursor: pointer; }