/* ***** Global ***** */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f3ffff;
    min-height: 100vh;
}

.container {
    max-width: 100%;
    margin: 0 auto;
}

.main-title {
    text-align: center;
    color: black;
    font-size: 3em;
    /*margin-bottom: 50px;*/
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-title {
    text-align: center;
    color: black;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.top_menu {
    position: sticky;
    top: 0;
    margin-top: 0px;
    background: #f3ffff;
    padding-top: 10px;
    padding-left: 10px;
    padding-bottom: 35px;
    z-index: 1;
}

.breadcrumb {
    color: black;
    position: absolute;
    /*font-size: 1.2em;*/
	font-size: clamp(0.9rem, 2vw, 1.3rem);
	
}

.breadcrumb a {
    color: black;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  padding: 7px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: sans-serif;
  margin-right: 5px;
}

.btn-back::before {
  content: "";
  width: 10px;
  height: 10px;
  border-left: 3px solid white;
  border-bottom: 3px solid white;
  transform: rotate(45deg);
  margin-left: 4px;
}

.path-focus {
    font-weight: bold;
}

/* ***** Categories ***** */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 300px));
    gap: 30px;
    padding: 20px;
	justify-content: center;
}

.category-card {
    background: black;
    border-radius: 15px;
    padding: 60px 40px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    box-shadow: 0px 0px 15px 15px lightgray;
    transform: scaleX(1.01) scaleY(1.01);
}

.category-name {
    font-size: 2em;
    font-weight: bold;
    color: #ffffff;
}

/* ***** Catalogs ***** */

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 20vw, 200px), 1fr));
    gap: 20px;
    padding: 20px;
	justify-content: center;
}

.catalog-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    justify-content: center;
    align-items: center;
}

.catalog-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.catalog-item img {
    padding: 1px;
    width: 95%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: flex;
    flex-wrap: wrap;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    justify-content: center;
    align-content: center;
}

.catalog-name {
    text-align: center;
    margin: 5px 2px 0 2px;
    font: bold 13pt "Arial" ;
	font-size: clamp(0.5rem, 6vw, 1rem);
    color: #000;
	display: grid;
	place-items: center;
	height: 55px;
}

.catalog-size {
    text-align: center;
    margin: 1px 0 10px 0;
    font: 10pt "Arial" ;
    color: #737e95;
	display: grid;
	place-items: center;
	height: 10px;
}


/* ***** Gallery ***** */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 20vw, 200px), 1fr));
    gap: 20px;
    padding: 20px;
	justify-content: center;
}

.gallery-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    justify-content: center;
    align-items: center;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.gallery-item img {
    padding: 1px;
    width: 95%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: flex;
    flex-wrap: wrap;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    justify-content: center;
    align-content: center;
}

.gallery-itemname {
    text-align: center;
    margin: 5px 0 5px 0;
    font: bold 14pt "Arial" ;
    color: #000;
}

/* ***** Image Viewer ***** */

.lightbox-parent {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
}

.lightbox-menu {
    display: flex;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    background-color: rgba(0,0,0,0.95);
}

.lightbox {
    display: flex;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

.copylink {
    position: absolute;
    top: 15px;
    left: 10px;
    color: gray;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

.copylink:hover {
    color: #667eea;
}

.close {
    position: absolute;
    top: 1px;
    right: 10px;
    color: gray;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #667eea;
}


