@charset "UTF-8";
/* CSS Document */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&display=swap');

html {
	scroll-behavior: smooth;
    height: 100%;
}
* {
	box-sizing: border-box;
	padding: 0rem;
	margin: 0rem;
}
body {
    font-family: "Rajdhani", sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 24px;
    color: #A6A993;
    text-align: center;
    width: 100%;
    height: 100%;
}
main {
    width: 100%;
    height: 100%;
    padding: 1rem;
}
/*fotografia.php*/
.marc {
    display: inline-block;  /* s'adapta a la foto */
    position: relative;     /* per a col·locar els botons dins */
    padding-left: 6rem;          /* padding on viuran els botons */
    padding-right: 6rem;          /* padding on viuran els botons */
}

.marc img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;   /* evita que surti de l'ample de la finestra */
    max-height: calc(100vh - 2rem); /* evita que sobrepassi l’alçada de la pantalla */
}
div.marc div.surt {
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 250%;
}
div.marc div.anterior,
div.marc div.posterior {
    position: absolute;
    top: 45%;
    font-size: 300%;
}

div.marc div.anterior {
    left: 0rem;
}
div.marc div.posterior {
    right: 0rem;
}
div.marc div.surt a:link,
div.marc div.surt a:visited,
div.marc div.anterior a:link,
div.marc div.anterior a:visited,
div.marc div.posterior a:link,
div.marc div.posterior a:visited {
    text-decoration: none;
    color: #A6A993;
}
div.marc div.surt a:hover,
div.marc div.anterior a:hover,
div.marc div.posterior a:hover {
    color: orange;
}
div.marc div.num {
    position: absolute;
    top: 0.5rem;
    left: 2rem;
    font-size: 260%;
}




